Class: Weka::Core::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/weka/core/loader.rb

Class Method Summary collapse

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_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