java.io.Serializable
, MOAObject
protected final class AdaptiveRandomForest.ARFBaseLearner extends AbstractMOAObject
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 | Description |
---|---|
ARFBaseLearner(int indexOriginal,
ARFHoeffdingTree instantiatedClassifier,
BasicClassificationPerformanceEvaluator evaluatorInstantiated,
long instancesSeen,
boolean useBkgLearner,
boolean useDriftDetector,
ClassOption driftOption,
ClassOption warningOption,
boolean isBackgroundLearner) |
Modifier and Type | Method | Description |
---|---|---|
void |
getDescription(java.lang.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) |
copy, copy, measureByteSize, measureByteSize, toString
public int indexOriginal
public long createdOn
public long lastDriftOn
public long lastWarningOn
public ARFHoeffdingTree classifier
public boolean isBackgroundLearner
protected ClassOption driftOption
protected ClassOption warningOption
protected ChangeDetector driftDetectionMethod
protected ChangeDetector warningDetectionMethod
public boolean useBkgLearner
public boolean useDriftDetector
protected AdaptiveRandomForest.ARFBaseLearner bkgLearner
public BasicClassificationPerformanceEvaluator evaluator
protected int numberOfDriftsDetected
protected int numberOfWarningsDetected
public ARFBaseLearner(int indexOriginal, ARFHoeffdingTree instantiatedClassifier, BasicClassificationPerformanceEvaluator evaluatorInstantiated, long instancesSeen, boolean useBkgLearner, boolean useDriftDetector, ClassOption driftOption, ClassOption warningOption, boolean isBackgroundLearner)
public void reset()
public void trainOnInstance(Instance instance, double weight, long instancesSeen)
public double[] getVotesForInstance(Instance instance)
public void getDescription(java.lang.StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.