Package moa.classifiers.meta
Class AdaptiveRandomForest.ARFBaseLearner
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.meta.AdaptiveRandomForest.ARFBaseLearner
-
- All Implemented Interfaces:
Serializable
,MOAObject
- Enclosing class:
- AdaptiveRandomForest
protected final class AdaptiveRandomForest.ARFBaseLearner extends AbstractMOAObject
Inner class that represents a single tree member of the forest. It contains some analysis information, such as the numberOfDriftsDetected,- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AdaptiveRandomForest.ARFBaseLearner
bkgLearner
ARFHoeffdingTree
classifier
long
createdOn
protected ChangeDetector
driftDetectionMethod
protected ClassOption
driftOption
BasicClassificationPerformanceEvaluator
evaluator
int
indexOriginal
boolean
isBackgroundLearner
long
lastDriftOn
long
lastWarningOn
protected int
numberOfDriftsDetected
protected int
numberOfWarningsDetected
boolean
useBkgLearner
boolean
useDriftDetector
protected ChangeDetector
warningDetectionMethod
protected ClassOption
warningOption
-
Constructor Summary
Constructors Constructor Description ARFBaseLearner(int indexOriginal, ARFHoeffdingTree instantiatedClassifier, BasicClassificationPerformanceEvaluator evaluatorInstantiated, long instancesSeen, boolean useBkgLearner, boolean useDriftDetector, ClassOption driftOption, ClassOption warningOption, boolean isBackgroundLearner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.double[]
getVotesForInstance(Instance instance)
void
reset()
void
trainOnInstance(Instance instance, double weight, long instancesSeen)
-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
indexOriginal
public int indexOriginal
-
createdOn
public long createdOn
-
lastDriftOn
public long lastDriftOn
-
lastWarningOn
public long lastWarningOn
-
classifier
public ARFHoeffdingTree classifier
-
isBackgroundLearner
public boolean isBackgroundLearner
-
driftOption
protected ClassOption driftOption
-
warningOption
protected ClassOption warningOption
-
driftDetectionMethod
protected ChangeDetector driftDetectionMethod
-
warningDetectionMethod
protected ChangeDetector warningDetectionMethod
-
useBkgLearner
public boolean useBkgLearner
-
useDriftDetector
public boolean useDriftDetector
-
bkgLearner
protected AdaptiveRandomForest.ARFBaseLearner bkgLearner
-
evaluator
public BasicClassificationPerformanceEvaluator evaluator
-
numberOfDriftsDetected
protected int numberOfDriftsDetected
-
numberOfWarningsDetected
protected int numberOfWarningsDetected
-
-
Constructor Detail
-
ARFBaseLearner
public ARFBaseLearner(int indexOriginal, ARFHoeffdingTree instantiatedClassifier, BasicClassificationPerformanceEvaluator evaluatorInstantiated, long instancesSeen, boolean useBkgLearner, boolean useDriftDetector, ClassOption driftOption, ClassOption warningOption, boolean isBackgroundLearner)
-
-
Method Detail
-
reset
public void reset()
-
trainOnInstance
public void trainOnInstance(Instance instance, double weight, long instancesSeen)
-
getVotesForInstance
public double[] getVotesForInstance(Instance instance)
-
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
-
-