public static class CrossValidationPartitioner.TrainingSampleStream<E> extends 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 IOException
public void reset() throws IOException
public void close() throws IOException
ObjectStreamand releases all allocated resources. After close was called its not allowed to call read or reset.
public ObjectStream<E> getTestSampleStream() throws 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 © 2017 The Apache Software Foundation. All rights reserved.