aima.learning.learners
Class DecisionListLearner
java.lang.Object
aima.learning.learners.DecisionListLearner
- All Implemented Interfaces:
- Learner
public class DecisionListLearner
- extends java.lang.Object
- implements Learner
Field Summary |
static java.lang.String |
FAILURE
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FAILURE
public static final java.lang.String FAILURE
- See Also:
- Constant Field Values
DecisionListLearner
public DecisionListLearner(java.lang.String positive,
java.lang.String negative,
DLTestFactory testFactory)
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.