class MachineLearner::Classifier
識別器クラス
Public Instance Methods
classify(x)
click to toggle source
識別を行う @param x 特徴空間 @return [Fixnum] 識別結果
# File lib/machine_learner/learner.rb, line 11 def classify(x) raise NotImplementedError.new end
evaluate(datas)
click to toggle source
test(data)
click to toggle source
性能の測定を行う @param data データ @return [Boolean] 識別できたらtrue, 外れたらfalse
# File lib/machine_learner/learner.rb, line 18 def test(data) classify(data.x) == data.y end