Package moa.classifiers.trees
Class EFDT.Node
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.trees.EFDT.Node
-
- All Implemented Interfaces:
Serializable
,MOAObject
- Direct Known Subclasses:
EFDT.LearningNode
,EFDT.SplitNode
- Enclosing class:
- EFDT
public static class EFDT.Node extends AbstractMOAObject
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DoubleVector
classDistributionAtTimeOfCreation
protected int
nodeTime
protected DoubleVector
observedClassDistribution
protected List<Integer>
usedNominalAttributes
-
Constructor Summary
Constructors Constructor Description Node(double[] classObservations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToSplitAttempts(int i)
int
calcByteSize()
int
calcByteSizeIncludingSubtree()
double
calculatePromise()
void
describeSubtree(EFDT ht, StringBuilder out, int indent)
EFDT.FoundNode
filterInstanceToLeaf(Instance inst, EFDT.SplitNode parent, int parentBranch)
double[]
getClassDistributionAtTimeOfCreation()
double[]
getClassVotes(Instance inst, EFDT ht)
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.HashMap<Integer,Double>
getInfogainSum()
int
getNumSplitAttempts()
double[]
getObservedClassDistribution()
boolean
isLeaf()
boolean
observedClassDistributionIsPure()
void
setInfogainSum(HashMap<Integer,Double> igs)
int
subtreeDepth()
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
observedClassDistribution
protected DoubleVector observedClassDistribution
-
classDistributionAtTimeOfCreation
protected DoubleVector classDistributionAtTimeOfCreation
-
nodeTime
protected int nodeTime
-
-
Method Detail
-
getNumSplitAttempts
public int getNumSplitAttempts()
-
addToSplitAttempts
public void addToSplitAttempts(int i)
-
calcByteSize
public int calcByteSize()
-
calcByteSizeIncludingSubtree
public int calcByteSizeIncludingSubtree()
-
isLeaf
public boolean isLeaf()
-
filterInstanceToLeaf
public EFDT.FoundNode filterInstanceToLeaf(Instance inst, EFDT.SplitNode parent, int parentBranch)
-
getObservedClassDistribution
public double[] getObservedClassDistribution()
-
getClassDistributionAtTimeOfCreation
public double[] getClassDistributionAtTimeOfCreation()
-
observedClassDistributionIsPure
public boolean observedClassDistributionIsPure()
-
describeSubtree
public void describeSubtree(EFDT ht, StringBuilder out, int indent)
-
subtreeDepth
public int subtreeDepth()
-
calculatePromise
public double calculatePromise()
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
-