aima.learning.learners
Class DecisionListLearner

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

public class DecisionListLearner
extends java.lang.Object
implements Learner


Field Summary
static java.lang.String FAILURE
           
 
Constructor Summary
DecisionListLearner(java.lang.String positive, java.lang.String negative, DLTestFactory testFactory)
           
 
Method Summary
 DecisionList getDecisionList()
           
 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
 

Field Detail

FAILURE

public static final java.lang.String FAILURE
See Also:
Constant Field Values
Constructor Detail

DecisionListLearner

public DecisionListLearner(java.lang.String positive,
                           java.lang.String negative,
                           DLTestFactory testFactory)
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

getDecisionList

public DecisionList getDecisionList()
Returns:
Returns the decisionList.