test/classifiers/naive_bayes_test.rb in ai4r-1.9 vs test/classifiers/naive_bayes_test.rb in ai4r-1.11
- old
+ new
@@ -1,7 +1,7 @@
-require File.dirname(__FILE__) + '/../../lib/ai4r/classifiers/naive_bayes'
-require File.dirname(__FILE__) + '/../../lib/ai4r/data/data_set'
+require 'ai4r/classifiers/naive_bayes'
+require 'ai4r/data/data_set'
require 'test/unit'
include Ai4r::Classifiers
include Ai4r::Data
@@ -38,6 +38,6 @@
assert_equal 2, map.keys.length
assert_in_delta 0.42, map["Yes"], 0.1
assert_in_delta 0.58, map["No"], 0.1
end
-end
\ No newline at end of file
+end