Class SeqDrift1ChangeDetector
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.classifiers.core.driftdetection.AbstractChangeDetector
-
- moa.classifiers.core.driftdetection.SeqDrift1ChangeDetector
-
- All Implemented Interfaces:
Configurable
,Serializable
,ChangeDetector
,MOAObject
,OptionHandler
public class SeqDrift1ChangeDetector extends AbstractChangeDetector
SeqDrift1ChangeDetector.java. This extends Abstract Change Detector as required by MOA. Sakthithasan, S., Pears, R., & Koh, Y. (2013). One Pass Concept Change Detection for Data Streams. In J. Pei, V. Tseng, L. Cao, H. Motoda, & G. Xu (Eds.), Advances in Knowledge Discovery and Data Mining (Vol. 7819, pp. 461-472): Springer Berlin Heidelberg.- Version:
- $Revision: 7 $
- Author:
- Sakthithasan Sripirakas sripirakas363 at yahoo dot com
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SeqDrift1ChangeDetector.SeqDrift1
SeqDrift1 uses sliding window to build a sequential change detection model that uses statistically sound guarantees defined using Bernstein Bound on false positive and false negative rates.
-
Field Summary
Fields Modifier and Type Field Description IntOption
blockSeqDriftOption
FloatOption
deltaOption
FloatOption
deltaWarningOption
protected SeqDrift1ChangeDetector.SeqDrift1
seqDrift1
-
Fields inherited from class moa.classifiers.core.driftdetection.AbstractChangeDetector
delay, estimation, isChangeDetected, isInitialized, isWarningZone
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description SeqDrift1ChangeDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getDescription(StringBuilder sb, int indent)
Returns a string representation of the model.void
input(double inputValue)
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.-
Methods inherited from class moa.classifiers.core.driftdetection.AbstractChangeDetector
copy, getChange, getDelay, getEstimation, getOutput, getWarningZone
-
Methods inherited from class moa.options.AbstractOptionHandler
getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
-
Methods inherited from class moa.AbstractMOAObject
copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.MOAObject
measureByteSize
-
Methods inherited from interface moa.options.OptionHandler
getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
-
-
-
-
Field Detail
-
seqDrift1
protected SeqDrift1ChangeDetector.SeqDrift1 seqDrift1
-
deltaOption
public FloatOption deltaOption
-
deltaWarningOption
public FloatOption deltaWarningOption
-
blockSeqDriftOption
public IntOption blockSeqDriftOption
-
-
Method Detail
-
input
public void input(double inputValue)
Description copied from class:AbstractChangeDetector
Adding a numeric value to the change detector
The output of the change detector is modified after the insertion of a new item inside.- Specified by:
input
in interfaceChangeDetector
- Specified by:
input
in classAbstractChangeDetector
- Parameters:
inputValue
- the number to insert into the change detector
-
resetLearning
public void resetLearning()
Description copied from class:AbstractChangeDetector
Resets this change detector. It must be similar to starting a new change detector from scratch.- Specified by:
resetLearning
in interfaceChangeDetector
- Overrides:
resetLearning
in classAbstractChangeDetector
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from class:AbstractChangeDetector
Returns a string representation of the model.- Specified by:
getDescription
in interfaceChangeDetector
- Specified by:
getDescription
in interfaceMOAObject
- Specified by:
getDescription
in classAbstractChangeDetector
- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
prepareForUseImpl
protected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
Description copied from class:AbstractOptionHandler
This method describes the implementation of how to prepare this object for use. All classes that extends this class have to implementprepareForUseImpl
and notprepareForUse
sinceprepareForUse
callsprepareForUseImpl
.- Specified by:
prepareForUseImpl
in classAbstractOptionHandler
- Parameters:
monitor
- the TaskMonitor to userepository
- the ObjectRepository to use
-
-