public class RnnSequenceClassifier extends Dl4jMlpClassifier implements weka.core.CapabilitiesHandler, weka.classifiers.Classifier, java.io.Serializable, weka.core.OptionHandler
FILTER_NONE, FILTER_NORMALIZE, FILTER_STANDARDIZE, TAGS_FILTER
Constructor and Description |
---|
RnnSequenceClassifier() |
Modifier and Type | Method and Description |
---|---|
double[] |
distributionForInstance(weka.core.Instance instance)
The method to use when making a prediction for a test instance.
|
double[][] |
distributionsForInstances(weka.core.Instances insts)
The method to use when making predictions for test instances.
|
weka.core.Capabilities |
getCapabilities()
Returns default capabilities of the classifier.
|
int |
gettBPTTbackwardLength() |
int |
gettBPTTforwardLength() |
AbstractZooModel |
getZooModel()
Deprecated.
|
java.lang.String |
globalInfo()
.
|
void |
initializeClassifier(weka.core.Instances data)
The method used to initialize the classifier.
|
void |
settBPTTbackwardLength(int tBPTTbackwardLength) |
void |
settBPTTforwardLength(int tBPTTforwardLength) |
void |
setZooModel(AbstractZooModel zooModel)
Deprecated.
|
arithmeticUnderflow, buildClassifier, done, featurizeForLayer, getActivationsAtLayers, getActivationsAtLayers, getCacheMode, getDoNotClearFilesystemCache, getEarlyStopping, getFilterType, getInputShape, getInstanceIterator, getIterationListener, getLayers, getLoadLayerSpecification, getLogConfig, getModel, getModelName, getNeuralNetConfiguration, getNumEpochs, getNumGPUs, getParameterAveragingFrequency, getPrefetchBufferSize, getQueueSize, getResume, implementsMoreEfficientBatchPrediction, isFilterMode, isValidOutputLayer, loadInferenceModel, loadModel, loadZooModelNoData, main, next, outputSingle, setCacheMode, setDoNotClearFilesystemCache, setEarlyStopping, setFilterMode, setFilterType, setInstanceIterator, setIterationListener, setLayers, setLoadLayerSpecification, setLogConfig, setNeuralNetConfiguration, setNumEpochs, setNumGPUs, setParameterAveragingFrequency, setPrefetchBufferSize, setQueueSize, setResume, splitTrainVal, toString, tryLoadFromFile, useEarlyStopping, useZooModel
getOptions, getSeed, listOptions, seedTipText, setOptions, setSeed
batchSizeTipText, classifyInstance, debugTipText, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getRevision, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public void initializeClassifier(weka.core.Instances data) throws java.lang.Exception
initializeClassifier
in interface weka.classifiers.IterativeClassifier
initializeClassifier
in class Dl4jMlpClassifier
data
- set of instances serving as training datajava.lang.Exception
- if something goes wrong in the training processpublic double[][] distributionsForInstances(weka.core.Instances insts) throws java.lang.Exception
distributionsForInstances
in interface weka.core.BatchPredictor
distributionsForInstances
in class Dl4jMlpClassifier
insts
- the instances to get predictions forjava.lang.Exception
- if something goes wrong at prediction timepublic double[] distributionForInstance(weka.core.Instance instance) throws java.lang.Exception
Dl4jMlpClassifier
distributionForInstance
in interface weka.classifiers.Classifier
distributionForInstance
in class Dl4jMlpClassifier
instance
- the instance to get a prediction forjava.lang.Exception
- if something goes wrong at prediction time@OptionMetadata(description="Number of backpropagations through time backward (default = 25).", displayName="truncated backprop through time backward", commandLineParamName="tBPTTBackward", commandLineParamSynopsis="-tBPTTBackward <int>", displayOrder=20) public int gettBPTTbackwardLength()
public void settBPTTbackwardLength(int tBPTTbackwardLength)
@OptionMetadata(description="Number of backpropagations through time forward (default = 25).", displayName="truncated backprop through time forward", commandLineParamName="tBPTTForward", commandLineParamSynopsis="-tBPTTForward <int>", displayOrder=21) public int gettBPTTforwardLength()
public void settBPTTforwardLength(int tBPTTforwardLength)
@Deprecated @ProgrammaticProperty public AbstractZooModel getZooModel()
Dl4jMlpClassifier
getZooModel
in class Dl4jMlpClassifier
@Deprecated @ProgrammaticProperty public void setZooModel(AbstractZooModel zooModel)
Dl4jMlpClassifier
setZooModel
in class Dl4jMlpClassifier
zooModel
- The predefined zooModelpublic weka.core.Capabilities getCapabilities()
getCapabilities
in interface weka.classifiers.Classifier
getCapabilities
in interface weka.core.CapabilitiesHandler
getCapabilities
in class Dl4jMlpClassifier
public java.lang.String globalInfo()
Dl4jMlpClassifier
globalInfo
in class Dl4jMlpClassifier