Class: Weka::Core::Loader
- Inherits:
-
Object
- Object
- Weka::Core::Loader
- Defined in:
- lib/weka/core/loader.rb
Class Method Summary collapse
- .load_arff(file) ⇒ Object
-
.load_c45(file) ⇒ Object
Takes either a *.names or a *.data file and loads the respective other file from the same directory automatically.
- .load_csv(file) ⇒ Object
- .load_json(file) ⇒ Object
Class Method Details
.load_arff(file) ⇒ Object
9 10 11 |
# File 'lib/weka/core/loader.rb', line 9 def load_arff(file) load_with(Converters::ArffLoader, file: file) end |
.load_c45(file) ⇒ Object
Takes either a *.names or a *.data file and loads the respective other file from the same directory automatically. Returns a Weka::Core::Instances object.
See www.cs.washington.edu/dm/vfml/appendixes/c45.htm for more information about the C4.5 file format.
27 28 29 |
# File 'lib/weka/core/loader.rb', line 27 def load_c45(file) load_with(Converters::C45Loader, file: file) end |
.load_csv(file) ⇒ Object
13 14 15 |
# File 'lib/weka/core/loader.rb', line 13 def load_csv(file) load_with(Converters::CSVLoader, file: file) end |
.load_json(file) ⇒ Object
17 18 19 |
# File 'lib/weka/core/loader.rb', line 17 def load_json(file) load_with(Converters::JSONLoader, file: file) end |