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:
- java.io.Serializable, LearningNode
- Direct Known Subclasses:
- NBNode
public class ActiveHNode extends LeafNode implements LearningNode, java.io.Serializable
Node that is "active" (i.e. growth can occur) in a Hoeffding tree- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description doublem_weightSeenAtLastSplitEvalThe weight of instances seen at the last split evaluation-
Fields inherited from class weka.classifiers.trees.ht.LeafNode
m_parentBranch, m_parentNode, m_theNode
-
Fields inherited from class weka.classifiers.trees.ht.HNode
m_classDistribution
-
-
Constructor Summary
Constructors Constructor and Description ActiveHNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<SplitCandidate>getPossibleSplits(SplitMetric splitMetric)Returns a list of split candidatesvoidupdateNode(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
-
-
-
-
Field Detail
-
m_weightSeenAtLastSplitEval
public double m_weightSeenAtLastSplitEval
The weight of instances seen at the last split evaluation
-
-
Method Detail
-
updateNode
public void updateNode(Instance inst) throws java.lang.Exception
Description copied from class:HNodeUpdate the node with the supplied instance- Overrides:
updateNodein classLeafNode- Parameters:
inst- the instance to update with- Throws:
java.lang.Exception- if a problem occurs
-
getPossibleSplits
public java.util.List<SplitCandidate> getPossibleSplits(SplitMetric splitMetric)
Returns a list of split candidates- Parameters:
splitMetric- the splitting metric to use- Returns:
- a list of split candidates
-
-
DataMelt 3.0 © DataMelt by jWork.ORG