public class CachedInstancesStream extends AbstractMOAObject implements InstanceStream
CacheShuffledStream that
stores and shuffles examples in memory.| Modifier and Type | Field and Description |
|---|---|
protected int |
streamPos |
protected weka.core.Instances |
toStream |
| Constructor and Description |
|---|
CachedInstancesStream(weka.core.Instances toStream) |
| 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.
|
boolean |
hasMoreInstances()
Gets whether this stream has more instances to output.
|
boolean |
isRestartable()
Gets whether this stream can restart.
|
weka.core.Instance |
nextInstance()
Gets the next instance from this stream.
|
void |
restart()
Restarts this stream.
|
copy, copy, measureByteSize, measureByteSize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcopy, measureByteSizepublic InstancesHeader getHeader()
InstanceStreamgetHeader in interface InstanceStreampublic long estimatedRemainingInstances()
InstanceStreamestimatedRemainingInstances in interface InstanceStreampublic boolean hasMoreInstances()
InstanceStreamhasMoreInstances in interface InstanceStreampublic weka.core.Instance nextInstance()
InstanceStreamnextInstance in interface InstanceStreampublic boolean isRestartable()
InstanceStreamisRestartable in interface InstanceStreampublic void restart()
InstanceStreamrestart in interface InstanceStreampublic void getDescription(StringBuilder sb, int indent)
MOAObjectAbstractMOAObject.toString
to give a string representation of the object.getDescription in interface MOAObjectsb - the stringbuilder to add the descriptionindent - the number of characters to indentCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.