public class HDDM_W_Test extends AbstractChangeDetector
Online drift detection method based on McDiarmid's bounds. HDDMW-test uses the EWMA statistic as estimator. It receives as input a stream of real values and returns the estimated status of the stream: STABLE, WARNING or DRIFT.
I. Frias-Blanco, J. del Campo-Avila, G. Ramos-Jimenez, R. Morales-Bueno, A. Ortiz-Diaz, and Y. Caballero-Mota, Online and non-parametric drift detection methods based on Hoeffding's bound, IEEE Transactions on Knowledge and Data Engineering, 2014. DOI 10.1109/TKDE.2014.2345382.
Parameters:
Modifier and Type | Class and Description |
---|---|
static class |
HDDM_W_Test.SampleInfo |
Modifier and Type | Field and Description |
---|---|
protected double |
decrCutPoint |
protected double |
driftConfidence |
FloatOption |
driftConfidenceOption |
protected double |
incrCutPoint |
protected double |
lambda |
FloatOption |
lambdaOption |
protected boolean |
oneSidedTest |
MultiChoiceOption |
oneSidedTestOption |
protected static long |
serialVersionUID |
protected double |
warningConfidence |
FloatOption |
warningConfidenceOption |
protected int |
width |
delay, estimation, isChangeDetected, isInitialized, isWarningZone
config
Constructor and Description |
---|
HDDM_W_Test() |
Modifier and Type | Method and Description |
---|---|
boolean |
detectMeanIncrement(HDDM_W_Test.SampleInfo sample1,
HDDM_W_Test.SampleInfo sample2,
double confidence) |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of the model.
|
void |
input(boolean prediction) |
void |
input(double value)
Adding a numeric value to the change detector
The output of the change detector is modified after the insertion of a new item inside. |
protected boolean |
monitorMeanDecr(double valor,
double confidence) |
protected boolean |
monitorMeanIncr(double valor,
double confidence) |
protected void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.
|
void |
resetLearning()
Resets this change detector.
|
copy, getChange, getDelay, getEstimation, getOutput, getWarningZone
getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
measureByteSize
protected static final long serialVersionUID
public FloatOption driftConfidenceOption
public FloatOption warningConfidenceOption
public FloatOption lambdaOption
public MultiChoiceOption oneSidedTestOption
protected double incrCutPoint
protected double decrCutPoint
protected double lambda
protected double warningConfidence
protected double driftConfidence
protected boolean oneSidedTest
protected int width
public void resetLearning()
AbstractChangeDetector
resetLearning
in interface ChangeDetector
resetLearning
in class AbstractChangeDetector
public void input(boolean prediction)
public void input(double value)
AbstractChangeDetector
input
in interface ChangeDetector
input
in class AbstractChangeDetector
value
- the number to insert into the change detectorpublic boolean detectMeanIncrement(HDDM_W_Test.SampleInfo sample1, HDDM_W_Test.SampleInfo sample2, double confidence)
protected boolean monitorMeanIncr(double valor, double confidence)
protected boolean monitorMeanDecr(double valor, double confidence)
protected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandler
prepareForUseImpl
and not prepareForUse
since
prepareForUse
calls prepareForUseImpl
.prepareForUseImpl
in class AbstractOptionHandler
monitor
- the TaskMonitor to userepository
- the ObjectRepository to usepublic void getDescription(StringBuilder sb, int indent)
AbstractChangeDetector
getDescription
in interface ChangeDetector
getDescription
in interface MOAObject
getDescription
in class AbstractChangeDetector
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.