public class RCD extends SingleClassifierDrift
Modifier and Type | Field and Description |
---|---|
protected int |
bufferSize |
IntOption |
bufferSizeOption |
IntOption |
classifiersSizeOption |
protected List<Instance> |
currentChunk |
protected List<Instance> |
currentChunk2 |
protected int |
index |
protected int |
previousState |
IntOption |
quantityClassifiersTestOption |
FloatOption |
similarityBetweenDistributionsOption |
ClassOption |
statisticalTestOption |
protected List<Instance> |
testChunk |
IntOption |
testFrequencyOption |
IntOption |
threadSizeOption |
baseLearnerOption, changeDetected, classifier, DDM_INCONTROL_LEVEL, DDM_OUTCONTROL_LEVEL, DDM_WARNING_LEVEL, ddmLevel, driftDetectionMethod, driftDetectionMethodOption, newclassifier, newClassifierReset, warningDetected
classifierRandom, downSampleRatio, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
config
Constructor and Description |
---|
RCD() |
Modifier and Type | Method and 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. |
getModelDescription, getModelMeasurementsImpl, getPurposeString, isChangeDetected, isRandomizable, isWarningDetected
contextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getDownSampleRatio, getModel, getModelContext, getModelMeasurements, getNominalValueString, getPredictionForInstance, getPredictionForInstance, getSubClassifiers, getSublearners, getVotesForInstance, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance, trainOnInstance, updateDownSampleRatio
getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCLICreationString, getOptions, prepareForUse, prepareForUse
measureByteSize
public ClassOption statisticalTestOption
public FloatOption similarityBetweenDistributionsOption
public IntOption bufferSizeOption
public IntOption testFrequencyOption
public IntOption classifiersSizeOption
public IntOption threadSizeOption
public IntOption quantityClassifiersTestOption
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.