public class SamplingDataSetIterator extends Object implements DataSetIterator
| Constructor and Description |
|---|
SamplingDataSetIterator(DataSet sampleFrom,
int batchSize,
int totalNumberSamples) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asyncSupported() |
int |
batch() |
List<String> |
getLabels() |
boolean |
hasNext() |
int |
inputColumns() |
DataSet |
next() |
DataSet |
next(int num) |
void |
remove() |
void |
reset() |
boolean |
resetSupported() |
void |
setPreProcessor(DataSetPreProcessor preProcessor) |
int |
totalOutcomes() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPreProcessorforEachRemainingpublic SamplingDataSetIterator(DataSet sampleFrom, int batchSize, int totalNumberSamples)
sampleFrom - the dataset to sample frombatchSize - the batch size to sampletotalNumberSamples - the sample sizepublic int inputColumns()
inputColumns in interface DataSetIteratorpublic int totalOutcomes()
totalOutcomes in interface DataSetIteratorpublic boolean resetSupported()
resetSupported in interface DataSetIteratorpublic boolean asyncSupported()
asyncSupported in interface DataSetIteratorpublic void reset()
reset in interface DataSetIteratorpublic int batch()
batch in interface DataSetIteratorpublic void setPreProcessor(DataSetPreProcessor preProcessor)
setPreProcessor in interface DataSetIteratorpublic List<String> getLabels()
getLabels in interface DataSetIteratorpublic DataSet next(int num)
next in interface DataSetIteratorCopyright © 2019. All rights reserved.