Package moa.classifiers.rules.core
Class RuleSplitNode
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.trees.HoeffdingTree.Node
-
- moa.classifiers.trees.HoeffdingTree.SplitNode
-
- moa.classifiers.rules.core.RuleSplitNode
-
- All Implemented Interfaces:
Serializable
,MOAObject
public class RuleSplitNode extends HoeffdingTree.SplitNode
A modified SplitNode method implementing the extra information- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected double
lastTargetMean
protected int
operatorObserver
-
Fields inherited from class moa.classifiers.trees.HoeffdingTree.SplitNode
children, splitTest
-
Fields inherited from class moa.classifiers.trees.HoeffdingTree.Node
observedClassDistribution
-
-
Constructor Summary
Constructors Constructor Description RuleSplitNode(InstanceConditionalTest splitTest, double[] classObservations)
Create a new RuleSplitNode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(Instance instance)
InstanceConditionalTest
getSplitTest()
-
Methods inherited from class moa.classifiers.trees.HoeffdingTree.SplitNode
calcByteSize, calcByteSizeIncludingSubtree, describeSubtree, filterInstanceToLeaf, getChild, getChildren, getObservedClassDistributionAtLeavesReachableThroughThisNode, instanceChildIndex, isLeaf, numChildren, setChild, subtreeDepth
-
Methods inherited from class moa.classifiers.trees.HoeffdingTree.Node
calculatePromise, getClassVotes, getDescription, getObservedClassDistribution, observedClassDistributionIsPure
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Constructor Detail
-
RuleSplitNode
public RuleSplitNode(InstanceConditionalTest splitTest, double[] classObservations)
Create a new RuleSplitNode
-
-
Method Detail
-
getSplitTest
public InstanceConditionalTest getSplitTest()
- Overrides:
getSplitTest
in classHoeffdingTree.SplitNode
-
evaluate
public boolean evaluate(Instance instance)
-
-