Module: Unsupervised_Util
- Included in:
- Weka::Filter::Unsupervised::Attribute::Add, Weka::Filter::Unsupervised::Attribute::AddCluster, Weka::Filter::Unsupervised::Attribute::Center, Weka::Filter::Unsupervised::Attribute::ClusterMembership, Weka::Filter::Unsupervised::Attribute::Discretize, Weka::Filter::Unsupervised::Attribute::NominalToString, Weka::Filter::Unsupervised::Attribute::Normalize, Weka::Filter::Unsupervised::Attribute::PrincipalComponents, Weka::Filter::Unsupervised::Attribute::Remove, Weka::Filter::Unsupervised::Attribute::Standardize, Weka::Filter::Unsupervised::Attribute::StringToWordVector, Weka::Filter::Unsupervised::Instance::NonSparseToSparse, Weka::Filter::Unsupervised::Instance::Normalize, Weka::Filter::Unsupervised::Instance::RemoveRange, Weka::Filter::Unsupervised::Instance::RemoveWithValues, Weka::Filter::Unsupervised::Instance::SparseToNonSparse, Weka::Filter::Unsupervised::Instance::SubsetByExpression
- Defined in:
- lib/ruby-band/weka/filters/unsupervised/unsupervised_utils.rb
Instance Method Summary collapse
- #data(instances) ⇒ Object
- #description ⇒ Object
- #filter_options(options_string) ⇒ Object
-
#options_list ⇒ Object
Instance methods list.
- #set(&block) ⇒ Object
-
#use(*args) ⇒ Object
*args is an optional Instances data object.
Instance Method Details
#data(instances) ⇒ Object
15 16 17 18 |
# File 'lib/ruby-band/weka/filters/unsupervised/unsupervised_utils.rb', line 15 def data(instances) setInputFormat(instances) @input = instances end |
#description ⇒ Object
20 21 22 |
# File 'lib/ruby-band/weka/filters/unsupervised/unsupervised_utils.rb', line 20 def description globalInfo end |
#filter_options(options_string) ⇒ Object
10 11 12 13 |
# File 'lib/ruby-band/weka/filters/unsupervised/unsupervised_utils.rb', line 10 def () = Utils.splitOptions() setOptions() end |
#options_list ⇒ Object
Instance methods list
6 7 8 |
# File 'lib/ruby-band/weka/filters/unsupervised/unsupervised_utils.rb', line 6 def listOptions.map {|key| "#{key.synopsis} #{key.description}"}.join("\n") end |
#set(&block) ⇒ Object
33 34 35 |
# File 'lib/ruby-band/weka/filters/unsupervised/unsupervised_utils.rb', line 33 def set(&block) self.instance_eval(&block) end |
#use(*args) ⇒ Object
*args is an optional Instances data object
25 26 27 28 29 30 31 |
# File 'lib/ruby-band/weka/filters/unsupervised/unsupervised_utils.rb', line 25 def use(*args) if args[0] Filter.useFilter(args[0],self) else Filter.useFilter(@input,self) end end |