public class ConvolutionalInstancesIterator extends AbstractDataSetIterator
| Constructor and Description |
|---|
ConvolutionalInstancesIterator() |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight() |
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 |
getNumChannels() |
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
int |
getTrainBatchSize()
Getting the training batch size
|
int |
getWidth() |
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setHeight(int height) |
void |
setNumChannels(int numChannels) |
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setTrainBatchSize(int trainBatchSize)
Setting the training batch size
|
void |
setWidth(int width) |
getIterator@OptionMetadata(displayName="size of mini batch", description="The mini batch size to use in the iterator (default = 1).", commandLineParamName="bs", commandLineParamSynopsis="-bs <int>", displayOrder=0) public void setTrainBatchSize(int trainBatchSize)
AbstractDataSetIteratorsetTrainBatchSize in class AbstractDataSetIteratortrainBatchSize - the batch sizepublic int getTrainBatchSize()
AbstractDataSetIteratorgetTrainBatchSize in class AbstractDataSetIterator@OptionMetadata(displayName="desired width", description="The desired width of the images (default = 28).", commandLineParamName="width", commandLineParamSynopsis="-width <int>", displayOrder=1) public int getWidth()
public void setWidth(int width)
@OptionMetadata(displayName="desired height", description="The desired height of the images (default = 28).", commandLineParamName="height", commandLineParamSynopsis="-height <int>", displayOrder=2) public int getHeight()
public void setHeight(int height)
@OptionMetadata(displayName="desired number of channels", description="The desired number of channels (default = 1).", commandLineParamName="numChannels", commandLineParamSynopsis="-numChannels <int>", displayOrder=3) public int getNumChannels()
public void setNumChannels(int numChannels)
public 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 usepublic java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class AbstractDataSetIteratorpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class AbstractDataSetIteratorpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface OptionHandlersetOptions in class AbstractDataSetIteratoroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supported