com.rapidminer.operator.learner.tree
Class Tree
java.lang.Object
com.rapidminer.operator.learner.tree.Tree
- All Implemented Interfaces:
- java.io.Serializable
public class Tree
- extends java.lang.Object
- implements java.io.Serializable
A tree is a node in a tree model containing several edges to other
trees (children) combined with conditions at these edges.
Leafs contain the class label which should be predicted.
- Author:
- Sebastian Land, Ingo Mierswa
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Tree
public Tree(ExampleSet trainingSet)
getTrainingSet
public ExampleSet getTrainingSet()
addCount
public void addCount(java.lang.String className,
int count)
getCount
public int getCount(java.lang.String className)
getFrequencySum
public int getFrequencySum()
getSubtreeFrequencySum
public int getSubtreeFrequencySum()
getCounterMap
public java.util.Map<java.lang.String,java.lang.Integer> getCounterMap()
setLeaf
public void setLeaf(java.lang.String label)
addChild
public void addChild(Tree child,
SplitCondition condition)
removeChildren
public void removeChildren()
isLeaf
public boolean isLeaf()
getLabel
public java.lang.String getLabel()
childIterator
public java.util.Iterator<Edge> childIterator()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2001-2009 by Rapid-I