Configurable
, java.io.Serializable
, CapabilitiesHandler
, Classifier
, MultiClassClassifier
, AWTRenderable
, Learner<Example<Instance>>
, MOAObject
, OptionHandler
public class RCD extends SingleClassifierDrift
Modifier and Type | Field | Description |
---|---|---|
protected int |
bufferSize |
|
IntOption |
bufferSizeOption |
|
IntOption |
classifiersSizeOption |
|
protected java.util.List<Instance> |
currentChunk |
|
protected java.util.List<Instance> |
currentChunk2 |
|
protected int |
index |
|
protected int |
previousState |
|
IntOption |
quantityClassifiersTestOption |
|
FloatOption |
similarityBetweenDistributionsOption |
|
ClassOption |
statisticalTestOption |
|
protected java.util.List<Instance> |
testChunk |
|
IntOption |
testFrequencyOption |
|
IntOption |
threadSizeOption |
classifierRandom, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
config
baseLearnerOption, changeDetected, classifier, DDM_INCONTROL_LEVEL, DDM_OUTCONTROL_LEVEL, DDM_WARNING_LEVEL, ddmLevel, driftDetectionMethod, driftDetectionMethodOption, newclassifier, newClassifierReset, warningDetected
Constructor | Description |
---|---|
RCD() |
Modifier and Type | Method | Description |
---|---|---|
double[] |
getVotesForInstance(Instance inst) |
Predicts the class memberships for a given instance.
|
void |
resetLearningImpl() |
Resets this classifier.
|
void |
trainOnInstanceImpl(Instance inst) |
Trains this classifier incrementally using the given instance.
The reason for ...Impl methods: ease programmer burden by not requiring them to remember calls to super in overridden methods. |
contextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModel, getModelContext, getModelMeasurements, getNominalValueString, getPredictionForInstance, getPredictionForInstance, getSubClassifiers, getSublearners, getVotesForInstance, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance, trainOnInstance
copy, measureByteSize, measureByteSize, toString
getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
getCapabilities
defineImmutableCapabilities, getModelDescription, getModelMeasurementsImpl, getPurposeString, isChangeDetected, isRandomizable, isWarningDetected
measureByteSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCLICreationString, getOptions, prepareForUse, prepareForUse
public ClassOption statisticalTestOption
public FloatOption similarityBetweenDistributionsOption
public IntOption bufferSizeOption
public IntOption testFrequencyOption
public IntOption classifiersSizeOption
public IntOption threadSizeOption
public IntOption quantityClassifiersTestOption
protected java.util.List<Instance> currentChunk
protected java.util.List<Instance> currentChunk2
protected java.util.List<Instance> testChunk
protected int bufferSize
protected int previousState
protected int index
public void resetLearningImpl()
AbstractClassifier
resetLearningImpl
in class DriftDetectionMethodClassifier
public void trainOnInstanceImpl(Instance inst)
AbstractClassifier
trainOnInstanceImpl
in class DriftDetectionMethodClassifier
inst
- the instance to be used for trainingpublic double[] getVotesForInstance(Instance inst)
Classifier
getVotesForInstance
in interface Classifier
getVotesForInstance
in class DriftDetectionMethodClassifier
inst
- the instance to be classifiedCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.