public class RelationalInstanceIterator extends AbstractSequenceInstanceIterator
| Constructor and Description |
|---|
RelationalInstanceIterator() |
| Modifier and Type | Method and Description |
|---|---|
org.nd4j.linalg.dataset.api.iterator.DataSetIterator |
getDataSetIterator(weka.core.Instances data,
int seed,
int batchSize)
Returns the actual iterator.
|
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
int |
getRelationalAttributeIndex() |
int |
getTruncateLength() |
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setRelationalAttributeIndex(int relationalAttributeIndex) |
void |
setTruncateLength(int truncateLength) |
void |
validate(weka.core.Instances data)
Validates the input dataset
|
getDataSetIterator, getTrainBatchSize, initialize, setTrainBatchSizepublic org.nd4j.linalg.dataset.api.iterator.DataSetIterator getDataSetIterator(weka.core.Instances data,
int seed,
int batchSize)
throws java.lang.Exception
AbstractInstanceIteratorgetDataSetIterator in class AbstractInstanceIteratordata - 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 validate(weka.core.Instances data)
throws InvalidInputDataException
AbstractInstanceIteratorvalidate in class AbstractInstanceIteratordata - the input datasetInvalidInputDataException - if validation is unsuccessful@OptionMetadata(displayName="truncation length",
description="The maximum number of instances per row (default = 100).",
commandLineParamName="truncationLength",
commandLineParamSynopsis="-truncationLength <int>",
displayOrder=2)
public int getTruncateLength()
public void setTruncateLength(int truncateLength)
@OptionMetadata(displayName="relational attribute index",
description="Set the relational attribute\'s index (default = 0)",
commandLineParamName="relationalAttributeIndex",
commandLineParamSynopsis="-relationalAttributeIndex <int>",
displayOrder=2)
public int getRelationalAttributeIndex()
public void setRelationalAttributeIndex(int relationalAttributeIndex)
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class AbstractInstanceIteratorpublic java.lang.String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class AbstractInstanceIteratorpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
setOptions in interface weka.core.OptionHandlersetOptions in class AbstractInstanceIteratoroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supported