Package moa.streams.generators
Class LEDGeneratorDrift
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.streams.generators.LEDGenerator
-
- moa.streams.generators.LEDGeneratorDrift
-
- All Implemented Interfaces:
Configurable
,Serializable
,CapabilitiesHandler
,MOAObject
,OptionHandler
,ExampleStream<Example<Instance>>
,InstanceStream
public class LEDGeneratorDrift extends LEDGenerator
Stream generator for the problem of predicting the digit displayed on a 7-segment LED display with drift.- Version:
- $Revision: 7 $
- Author:
- Albert Bifet (abifet at cs dot waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]
numberAttribute
IntOption
numberAttributesDriftOption
-
Fields inherited from class moa.streams.generators.LEDGenerator
instanceRandom, instanceRandomSeedOption, noisePercentageOption, NUM_IRRELEVANT_ATTRIBUTES, originalInstances, streamHeader, suppressIrrelevantAttributesOption
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description LEDGeneratorDrift()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableCapabilities
defineImmutableCapabilities()
Defines the set of capabilities the object has.void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.String
getPurposeString()
Dictionary with option texts and objectsInstanceExample
nextInstance()
Gets the next example from this stream.protected 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.generators.LEDGenerator
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
-
-
-
-
Field Detail
-
numberAttributesDriftOption
public IntOption numberAttributesDriftOption
-
numberAttribute
protected int[] numberAttribute
-
-
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 classLEDGenerator
- Returns:
- the string with the purpose of this object
-
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
.- Overrides:
prepareForUseImpl
in classLEDGenerator
- Parameters:
monitor
- the TaskMonitor to userepository
- the ObjectRepository to use
-
nextInstance
public InstanceExample nextInstance()
Description copied from interface:ExampleStream
Gets the next example from this stream.- Specified by:
nextInstance
in interfaceExampleStream<Example<Instance>>
- Overrides:
nextInstance
in classLEDGenerator
- 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 classLEDGenerator
- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
defineImmutableCapabilities
public ImmutableCapabilities defineImmutableCapabilities()
Description copied from interface:CapabilitiesHandler
Defines the set of capabilities the object has. Should be overridden if the object's capabilities do not change.- Specified by:
defineImmutableCapabilities
in interfaceCapabilitiesHandler
- Specified by:
defineImmutableCapabilities
in interfaceExampleStream<Example<Instance>>
- Overrides:
defineImmutableCapabilities
in classLEDGenerator
- Returns:
- The capabilities of the object.
-
-