MOA 12.03
Real Time Analytics for Data Streams
moa.tasks.CacheShuffledStream Class Reference

Task for storing and shuffling examples in memory. More...

Inheritance diagram for moa.tasks.CacheShuffledStream:
Collaboration diagram for moa.tasks.CacheShuffledStream:

List of all members.

Public Member Functions

String getPurposeString ()
 Gets the purpose of this object.
Class<?> getTaskResultType ()
 Gets the result type of this task.

Public Attributes

ClassOption streamOption
IntOption maximumCacheSizeOption
IntOption shuffleRandomSeedOption

Protected Member Functions

Object doTaskImpl (TaskMonitor monitor, ObjectRepository repository)
 This method performs this task.

Detailed Description

Task for storing and shuffling examples in memory.

Author:
Richard Kirkby (rkirkby@cs.waikato.ac.nz)
Version:
Revision:
7

Definition at line 37 of file CacheShuffledStream.java.


Member Function Documentation

Object moa.tasks.CacheShuffledStream.doTaskImpl ( TaskMonitor  monitor,
ObjectRepository  repository 
) [protected, virtual]

This method performs this task.

AbstractTask implements doTask so all its extensions only need to implement doTaskImpl.

Parameters:
monitorthe TaskMonitor to use
repositorythe ObjectRepository to use
Returns:
an object with the result of this task

Implements moa.tasks.AbstractTask.

Definition at line 59 of file CacheShuffledStream.java.

Here is the call graph for this function:

String moa.tasks.CacheShuffledStream.getPurposeString ( )

Gets the purpose of this object.

Returns:
the string with the purpose of this object

Reimplemented from moa.options.AbstractOptionHandler.

Definition at line 40 of file CacheShuffledStream.java.

Class<?> moa.tasks.CacheShuffledStream.getTaskResultType ( )

Gets the result type of this task.

Tasks can return LearningCurve, LearningEvaluation, Classifier, String, Instances..

Returns:
a class object of the result of this task

Implements moa.tasks.Task.

Definition at line 88 of file CacheShuffledStream.java.


Member Data Documentation

Initial value:
 new IntOption("maximumCacheSize",
            'm', "Maximum number of instances to cache.", 1000000, 1,
            Integer.MAX_VALUE)

Definition at line 50 of file CacheShuffledStream.java.

Referenced by moa.tasks.CacheShuffledStream.doTaskImpl().

Initial value:
 new IntOption(
            "shuffleRandomSeed", 'r',
            "Seed for random shuffling of instances.", 1)

Definition at line 54 of file CacheShuffledStream.java.

Referenced by moa.tasks.CacheShuffledStream.doTaskImpl().

Initial value:
 new ClassOption("stream", 's',
            "Stream to cache and shuffle.", InstanceStream.class,
            "generators.RandomTreeGenerator")

Definition at line 46 of file CacheShuffledStream.java.

Referenced by moa.tasks.CacheShuffledStream.doTaskImpl().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations