Package moa.tasks
Class EvaluateInterleavedChunks
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.tasks.AbstractTask
-
- moa.tasks.MainTask
-
- moa.tasks.ClassificationMainTask
-
- moa.tasks.EvaluateInterleavedChunks
-
- All Implemented Interfaces:
Configurable
,Serializable
,CapabilitiesHandler
,MOAObject
,OptionHandler
,Task
public class EvaluateInterleavedChunks extends ClassificationMainTask
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description IntOption
chunkSizeOption
Allow to define the training/testing chunk size.FileOption
dumpFileOption
Allows to define the output file name and location.ClassOption
evaluatorOption
Allows to select the classifier performance evaluation method.IntOption
instanceLimitOption
Allows to define the maximum number of instances to test/train on (-1 = no limit).ClassOption
learnerOption
Allows to select the trained classifier.IntOption
maxMemoryOption
Allows to define the memory limit for the created model.IntOption
memCheckFrequencyOption
Allows to define the frequency of memory checks.IntOption
sampleFrequencyOption
Defines how often classifier parameters will be calculated.ClassOption
streamOption
Allows to select the stream the classifier will learn.IntOption
timeLimitOption
Allows to define the maximum number of seconds to test/train for (-1 = no limit).-
Fields inherited from class moa.tasks.ClassificationMainTask
events
-
Fields inherited from class moa.tasks.MainTask
INSTANCES_BETWEEN_MONITOR_UPDATES, outputFileOption
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description EvaluateInterleavedChunks()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
doMainTask(TaskMonitor monitor, ObjectRepository repository)
This method performs this task.String
getPurposeString()
Dictionary with option texts and objectsClass<?>
getTaskResultType()
Defines the task's result type.-
Methods inherited from class moa.tasks.ClassificationMainTask
defineImmutableCapabilities, getEventsList, setEventsList
-
Methods inherited from class moa.tasks.MainTask
doTaskImpl
-
Methods inherited from class moa.tasks.AbstractTask
doTask, doTask, getDescription, getTaskName, prepareForUseImpl
-
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
-
learnerOption
public ClassOption learnerOption
Allows to select the trained classifier.
-
streamOption
public ClassOption streamOption
Allows to select the stream the classifier will learn.
-
evaluatorOption
public ClassOption evaluatorOption
Allows to select the classifier performance evaluation method.
-
instanceLimitOption
public IntOption instanceLimitOption
Allows to define the maximum number of instances to test/train on (-1 = no limit).
-
chunkSizeOption
public IntOption chunkSizeOption
Allow to define the training/testing chunk size.
-
timeLimitOption
public IntOption timeLimitOption
Allows to define the maximum number of seconds to test/train for (-1 = no limit).
-
sampleFrequencyOption
public IntOption sampleFrequencyOption
Defines how often classifier parameters will be calculated.
-
maxMemoryOption
public IntOption maxMemoryOption
Allows to define the memory limit for the created model.
-
memCheckFrequencyOption
public IntOption memCheckFrequencyOption
Allows to define the frequency of memory checks.
-
dumpFileOption
public FileOption dumpFileOption
Allows to define the output file name and location.
-
-
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 classAbstractOptionHandler
- Returns:
- the string with the purpose of this object
-
getTaskResultType
public Class<?> getTaskResultType()
Defines the task's result type.- Returns:
- a class object of the result of this task
-
doMainTask
protected Object doMainTask(TaskMonitor monitor, ObjectRepository repository)
Description copied from class:MainTask
This method performs this task.AbstractTask
implementsdoTask
, that usesdoTaskImpl
.MainTask
implementsdoTaskImpl
usingdoMainTask
so its extensions only need to implementdoMainTask
.- Specified by:
doMainTask
in classMainTask
- Parameters:
monitor
- the TaskMonitor to userepository
- the ObjectRepository to use- Returns:
- an object with the result of this task
-
-