Package weka.classifiers.trees.ht
Class LeafNode
- java.lang.Object
-
- weka.classifiers.trees.ht.HNode
-
- weka.classifiers.trees.ht.LeafNode
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ActiveHNode,InactiveHNode
public class LeafNode extends HNode implements java.io.Serializable
Leaf node in a HoeffdingTree- Version:
- $Revision: 9705 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz), Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringm_parentBranchParent branch leading to this nodeSplitNodem_parentNodeParent split nodeHNodem_theNodeThe actual node for this leaf-
Fields inherited from class weka.classifiers.trees.ht.HNode
m_classDistribution
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidupdateNode(Instance inst)Update the node with the supplied instance-
Methods inherited from class weka.classifiers.trees.ht.HNode
classDistributionIsPure, getDistribution, graphTree, installNodeNums, isLeaf, leafForInstance, numEntriesInClassDistribution, toString, totalWeight, updateDistribution
-
-
-
-
Method Detail
-
updateNode
public void updateNode(Instance inst) throws java.lang.Exception
Description copied from class:HNodeUpdate the node with the supplied instance- Specified by:
updateNodein classHNode- Parameters:
inst- the instance to update with- Throws:
java.lang.Exception- if a problem occurs
-
-