examples/decision_trees/id3_example.rb in ai4r-1.4 vs examples/decision_trees/id3_example.rb in ai4r-1.5

- old
+ new

@@ -9,10 +9,10 @@ require File.dirname(__FILE__) + '/../../lib/ai4r/classifiers/id3' # Load data from data_set.csv data_filename = "#{File.dirname(__FILE__)}/data_set.csv" -data_set = Ai4r::Data::DataSet.new.load_data_and_labels_from_csv data_filename +data_set = Ai4r::Data::DataSet.new.load_csv_with_labels data_filename # Build ID3 tree id3 = Ai4r::Classifiers::ID3.new.build(data_set) # Show rules