public class ConceptDriftRealStream extends AbstractOptionHandler implements InstanceStream
ConceptDriftRealStream -s (ArffFileStream -f covtype.arff) \
-d (ConceptDriftRealStream -s (ArffFileStream -f PokerOrig.arff) \
-d (ArffFileStream -f elec.arff) -w 5000 -p 1000000 ) -w 5000 -p 581012
Modifier and Type | Field and Description |
---|---|
FloatOption |
alphaOption |
protected Instance |
driftInstance |
protected InstanceStream |
driftStream |
ClassOption |
driftstreamOption |
protected Instance |
inputInstance |
protected InstanceStream |
inputStream |
protected int |
numberInstanceStream |
IntOption |
positionOption |
protected Random |
random |
IntOption |
randomSeedOption |
protected InstancesHeader |
streamHeader |
ClassOption |
streamOption |
IntOption |
widthOption |
config
Constructor and Description |
---|
ConceptDriftRealStream() |
Modifier and Type | Method and Description |
---|---|
long |
estimatedRemainingInstances()
Gets the estimated number of remaining instances in this stream
|
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
InstancesHeader |
getHeader()
Gets the header of this stream.
|
String |
getPurposeString()
Dictionary with option texts and objects
|
boolean |
hasMoreInstances()
Gets whether this stream has more instances to output.
|
boolean |
isRestartable()
Gets whether this stream can restart.
|
InstanceExample |
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.
|
void |
restart()
Restarts this stream.
|
copy, getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, measureByteSize
public ClassOption streamOption
public ClassOption driftstreamOption
public FloatOption alphaOption
public IntOption positionOption
public IntOption widthOption
public IntOption randomSeedOption
protected InstanceStream inputStream
protected InstanceStream driftStream
protected Random random
protected int numberInstanceStream
protected InstancesHeader streamHeader
protected Instance inputInstance
protected Instance driftInstance
public String getPurposeString()
AbstractOptionHandler
getPurposeString
in interface OptionHandler
getPurposeString
in class AbstractOptionHandler
public void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandler
prepareForUseImpl
and not prepareForUse
since
prepareForUse
calls prepareForUseImpl
.prepareForUseImpl
in class AbstractOptionHandler
monitor
- the TaskMonitor to userepository
- the ObjectRepository to usepublic long estimatedRemainingInstances()
ExampleStream
estimatedRemainingInstances
in interface ExampleStream<Example<Instance>>
public boolean hasMoreInstances()
ExampleStream
hasMoreInstances
in interface ExampleStream<Example<Instance>>
public InstancesHeader getHeader()
ExampleStream
getHeader
in interface ExampleStream<Example<Instance>>
public boolean isRestartable()
ExampleStream
isRestartable
in interface ExampleStream<Example<Instance>>
public InstanceExample nextInstance()
ExampleStream
nextInstance
in interface ExampleStream<Example<Instance>>
public void restart()
ExampleStream
restart
in interface ExampleStream<Example<Instance>>
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.