aima.learning.learners
Class CurrentBestLearner

java.lang.Object
  extended by aima.learning.learners.CurrentBestLearner
All Implemented Interfaces:
Learner

public class CurrentBestLearner
extends java.lang.Object
implements Learner


Constructor Summary
CurrentBestLearner(java.lang.String trueGoalValue)
           
 
Method Summary
 java.lang.String predict(Example e)
           
 int[] test(DataSet ds)
           
 void train(DataSet ds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurrentBestLearner

public CurrentBestLearner(java.lang.String trueGoalValue)
Method Detail

train

public void train(DataSet ds)
Specified by:
train in interface Learner

predict

public java.lang.String predict(Example e)
Specified by:
predict in interface Learner

test

public int[] test(DataSet ds)
Specified by:
test in interface Learner