aima.learning.learners
Class DecisionTreeLearner

java.lang.Object
  extended by aima.learning.learners.DecisionTreeLearner
All Implemented Interfaces:
Learner
Direct Known Subclasses:
StumpLearner

public class DecisionTreeLearner
extends java.lang.Object
implements Learner


Constructor Summary
DecisionTreeLearner()
           
DecisionTreeLearner(DecisionTree tree, java.lang.String defaultValue)
           
 
Method Summary
 DecisionTree getDecisionTree()
           
 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

DecisionTreeLearner

public DecisionTreeLearner()

DecisionTreeLearner

public DecisionTreeLearner(DecisionTree tree,
                           java.lang.String defaultValue)
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

getDecisionTree

public DecisionTree getDecisionTree()