aima.learning.inductive
Class ConstantDecisonTree
java.lang.Object
aima.learning.inductive.DecisionTree
aima.learning.inductive.ConstantDecisonTree
public class ConstantDecisonTree
- extends DecisionTree
Method Summary |
void |
addLeaf(java.lang.String attributeValue,
java.lang.String decision)
|
void |
addNode(java.lang.String attributeValue,
DecisionTree tree)
|
java.lang.Object |
predict(Example e)
|
java.lang.String |
toString()
|
java.lang.String |
toString(int depth,
java.lang.StringBuffer buf)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConstantDecisonTree
public ConstantDecisonTree(java.lang.String value)
addLeaf
public void addLeaf(java.lang.String attributeValue,
java.lang.String decision)
- Overrides:
addLeaf
in class DecisionTree
addNode
public void addNode(java.lang.String attributeValue,
DecisionTree tree)
- Overrides:
addNode
in class DecisionTree
predict
public java.lang.Object predict(Example e)
- Overrides:
predict
in class DecisionTree
toString
public java.lang.String toString()
- Overrides:
toString
in class DecisionTree
toString
public java.lang.String toString(int depth,
java.lang.StringBuffer buf)
- Overrides:
toString
in class DecisionTree