public class DecisionTreeLearner extends java.lang.Object implements Learner
| Constructor and Description |
|---|
DecisionTreeLearner() |
DecisionTreeLearner(DecisionTree tree,
java.lang.String defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
DecisionTree |
getDecisionTree()
Returns the decision tree of this decision tree learner
|
java.lang.String |
predict(Example e)
Returns the outcome predicted for the specified example
|
int[] |
test(DataSet ds)
Returns the accuracy of the hypothesis on the specified set of examples
|
void |
train(DataSet ds)
Induces the decision tree from the specified set of examples
|
public DecisionTreeLearner()
public DecisionTreeLearner(DecisionTree tree, java.lang.String defaultValue)
public void train(DataSet ds)
public java.lang.String predict(Example e)
Learnerpublic int[] test(DataSet ds)
Learnerpublic DecisionTree getDecisionTree()