public class HDDM_A_Test extends AbstractChangeDetector
Online drift detection method based on Hoeffding's bounds. HDDMA-test uses the average 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 | Field and Description |
---|---|
protected double |
c_max |
protected double |
c_min |
protected double |
cEstimacion |
FloatOption |
driftConfidenceOption |
protected int |
n_max |
protected int |
n_min |
protected int |
nEstimacion |
MultiChoiceOption |
oneSidedTestOption |
protected double |
total_c |
protected int |
total_n |
FloatOption |
warningConfidenceOption |
delay, estimation, isChangeDetected, isInitialized, isWarningZone
config
Constructor and Description |
---|
HDDM_A_Test() |
Modifier and Type | Method and Description |
---|---|
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of the model.
|
double |
getEstimation()
Gets the prediction of next values.
|
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 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.
|
protected void |
updateEstimations() |
copy, getChange, getDelay, 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
public FloatOption driftConfidenceOption
public FloatOption warningConfidenceOption
public MultiChoiceOption oneSidedTestOption
protected int n_min
protected double c_min
protected int total_n
protected double total_c
protected int n_max
protected double c_max
protected double cEstimacion
protected int nEstimacion
public void input(double value)
AbstractChangeDetector
input
in interface ChangeDetector
input
in class AbstractChangeDetector
value
- the number to insert into the change detectorpublic void resetLearning()
AbstractChangeDetector
resetLearning
in interface ChangeDetector
resetLearning
in class AbstractChangeDetector
protected void updateEstimations()
public double getEstimation()
AbstractChangeDetector
getEstimation
in interface ChangeDetector
getEstimation
in class AbstractChangeDetector
public 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 indentprotected 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 useCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.