aima.learning.learners
Class MajorityLearner

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

public class MajorityLearner
extends java.lang.Object
implements Learner


Constructor Summary
MajorityLearner()
           
 
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

MajorityLearner

public MajorityLearner()
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