public static class CrossValidationPartitioner.TrainingSampleStream<E> extends java.lang.Object implements ObjectStream<E>
TrainingSampleStreamwhich iterates over all training elements. Note: After the
TestSampleStreamwas obtained the
TrainingSampleStreammust not be used anymore, otherwise a
IllegalStateExceptionis thrown. The
ObjectStreams must not be used anymore after the
CrossValidationPartitionerwas moved to one of next partitions. If they are called anyway a
|Modifier and Type||Method and Description|
Returns the next object.
Resets the training sample.
public E read() throws java.io.IOException
public void reset() throws java.io.IOException
public void close() throws java.io.IOException
ObjectStreamand releases all allocated resources. After close was called its not allowed to call read or reset.
public ObjectStream<E> getTestSampleStream() throws java.io.IOException
ObjectStreamover the test/evaluations elements and poisons this
TrainingSampleStream. From now on calls to the hasNext and next methods are forbidden and will raise an
Copyright © 2010 - 2019 Adobe. All Rights Reserved