public abstract class AbstractDataSetIterator extends java.lang.Object implements OptionHandler, java.io.Serializable
Constructor and Description |
---|
AbstractDataSetIterator() |
Modifier and Type | Method and Description |
---|---|
org.nd4j.linalg.dataset.api.iterator.DataSetIterator |
getIterator(Instances data,
int seed)
Returns the actual iterator.
|
abstract org.nd4j.linalg.dataset.api.iterator.DataSetIterator |
getIterator(Instances data,
int seed,
int batchSize)
Returns the actual iterator.
|
abstract int |
getNumAttributes(Instances data)
Get the number of predictor attributes for this iterator.
|
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
int |
getTrainBatchSize()
Getting the training batch size
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setTrainBatchSize(int trainBatchSize)
Setting the training batch size
|
public abstract int getNumAttributes(Instances data) throws java.lang.Exception
data
- the dataset to compute the number of attributes fromjava.lang.Exception
- if the number of attributes cannot be computed successfullypublic org.nd4j.linalg.dataset.api.iterator.DataSetIterator getIterator(Instances data, int seed) throws java.lang.Exception
data
- the dataset to useseed
- the seed for the random number generatorjava.lang.Exception
- if the constructor cannot be constructed successfullypublic abstract org.nd4j.linalg.dataset.api.iterator.DataSetIterator getIterator(Instances data, int seed, int batchSize) throws java.lang.Exception
data
- the dataset to useseed
- the seed for the random number generatorbatchSize
- the batch size to usejava.lang.Exception
- if the constructor cannot be constructed successfullypublic void setTrainBatchSize(int trainBatchSize)
trainBatchSize
- the batch sizepublic int getTrainBatchSize()
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
public java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supported