public class DefaultInstancesIterator extends AbstractDataSetIterator
| Constructor and Description |
|---|
DefaultInstancesIterator() |
| Modifier and Type | Method and Description |
|---|---|
org.nd4j.linalg.dataset.api.iterator.DataSetIterator |
getIterator(Instances data,
int seed,
int batchSize)
Returns the actual iterator.
|
int |
getNumAttributes(Instances data)
Returns the number of predictor attributes for this dataset.
|
int |
getTrainBatchSize()
Getting the training batch size
|
void |
setTrainBatchSize(int trainBatchSize)
Setting the training batch size
|
getIterator, getOptions, listOptions, setOptions@OptionMetadata(displayName="size of mini batch", description="The mini batch size to use in the iterator (default = 1).", commandLineParamName="bs", commandLineParamSynopsis="-bs <int>", displayOrder=1) public void setTrainBatchSize(int trainBatchSize)
AbstractDataSetIteratorsetTrainBatchSize in class AbstractDataSetIteratortrainBatchSize - the batch sizepublic int getTrainBatchSize()
AbstractDataSetIteratorgetTrainBatchSize in class AbstractDataSetIteratorpublic int getNumAttributes(Instances data)
getNumAttributes in class AbstractDataSetIteratordata - the dataset to compute the number of attributes frompublic org.nd4j.linalg.dataset.api.iterator.DataSetIterator getIterator(Instances data, int seed, int batchSize)
getIterator in class AbstractDataSetIteratordata - the dataset to useseed - the seed for the random number generatorbatchSize - the batch size to use