Package moa.streams
Class RecurrentConceptDriftStream
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.streams.ConceptDriftStream
-
- moa.streams.RecurrentConceptDriftStream
-
- All Implemented Interfaces:
Configurable
,Serializable
,CapabilitiesHandler
,MOAObject
,OptionHandler
,ExampleStream<Example<Instance>>
,InstanceStream
public class RecurrentConceptDriftStream extends ConceptDriftStream
Stream generator that adds recurrent concept drifts to examples in a stream.
Example:
RecurrentConceptDriftStream -s (generators.AgrawalGenerator -f 7)
-d (generators.AgrawalGenerator -f 2) -w 1000000 -p 900000
s : Stream
d : Concept drift Stream
p : Central position of first concept drift change
w : Width of concept drift changes
x : Width of recurrence (number of instances during which new concept is used) y : Number of stability period (number of instances between drifts) z : Number of appearances of drift- Version:
- $Revision: 1 $
- Author:
- Miguel Abad (miguel.abad.arranz at alumnos dot upm dot es)x, Albert Bifet (abifet at cs dot waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description IntOption
numRepOption
IntOption
stabPeriodOption
IntOption
widthRecurrenceOption
-
Fields inherited from class moa.streams.ConceptDriftStream
alphaOption, driftStream, driftstreamOption, inputStream, numberInstanceStream, positionOption, random, randomSeedOption, streamOption, widthOption
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description RecurrentConceptDriftStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.String
getPurposeString()
Dictionary with option texts and objectsExample
nextInstance()
Gets the next example from this stream.void
prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.-
Methods inherited from class moa.streams.ConceptDriftStream
defineImmutableCapabilities, estimatedRemainingInstances, getHeader, hasMoreInstances, isRestartable, restart
-
Methods inherited from class moa.options.AbstractOptionHandler
copy, getCLICreationString, getOptions, getPreparedClassOption, 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.capabilities.CapabilitiesHandler
getCapabilities
-
Methods inherited from interface moa.MOAObject
measureByteSize
-
-
-
-
Method Detail
-
getPurposeString
public String getPurposeString()
Description copied from class:AbstractOptionHandler
Dictionary with option texts and objects- Specified by:
getPurposeString
in interfaceOptionHandler
- Overrides:
getPurposeString
in classConceptDriftStream
- Returns:
- the string with the purpose of this object
-
prepareForUseImpl
public 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
.- Overrides:
prepareForUseImpl
in classConceptDriftStream
- Parameters:
monitor
- the TaskMonitor to userepository
- the ObjectRepository to use
-
nextInstance
public Example nextInstance()
Description copied from interface:ExampleStream
Gets the next example from this stream.- Specified by:
nextInstance
in interfaceExampleStream<Example<Instance>>
- Overrides:
nextInstance
in classConceptDriftStream
- Returns:
- the next example of this stream
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Specified by:
getDescription
in interfaceMOAObject
- Overrides:
getDescription
in classConceptDriftStream
- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
-