Package weka.classifiers.trees.ht
Class ActiveHNode
java.lang.Object
weka.classifiers.trees.ht.HNode
weka.classifiers.trees.ht.LeafNode
weka.classifiers.trees.ht.ActiveHNode
- All Implemented Interfaces:
Serializable,LearningNode
- Direct Known Subclasses:
NBNode
Node that is "active" (i.e. growth can occur) in a Hoeffding tree
- Version:
- $Revision: 9705 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz), Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleThe weight of instances seen at the last split evaluationFields inherited from class weka.classifiers.trees.ht.LeafNode
m_parentBranch, m_parentNode, m_theNodeFields inherited from class weka.classifiers.trees.ht.HNode
m_classDistribution -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPossibleSplits(SplitMetric splitMetric) Returns a list of split candidatesvoidupdateNode(Instance inst) Update the node with the supplied instanceMethods inherited from class weka.classifiers.trees.ht.HNode
classDistributionIsPure, getDistribution, graphTree, installNodeNums, isLeaf, leafForInstance, numEntriesInClassDistribution, toString, totalWeight, updateDistribution
-
Field Details
-
m_weightSeenAtLastSplitEval
public double m_weightSeenAtLastSplitEvalThe weight of instances seen at the last split evaluation
-
-
Constructor Details
-
ActiveHNode
public ActiveHNode()
-
-
Method Details
-
updateNode
Description copied from class:HNodeUpdate the node with the supplied instance- Overrides:
updateNodein classLeafNode- Parameters:
inst- the instance to update with- Throws:
Exception- if a problem occurs
-
getPossibleSplits
Returns a list of split candidates- Parameters:
splitMetric- the splitting metric to use- Returns:
- a list of split candidates
-