public class BinomialDistribution extends Distribution<org.deeplearning4j.nn.conf.distribution.BinomialDistribution> implements weka.core.OptionHandler
Constructor and Description |
---|
BinomialDistribution() |
Modifier and Type | Method and Description |
---|---|
org.deeplearning4j.nn.conf.distribution.BinomialDistribution |
getBackend()
Access the DL4J backend.
|
double |
getNumberOfTrials() |
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
double |
getProbabilityOfSuccess() |
void |
initializeBackend()
Initialize the DL4J backend.
|
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setNumberOfTrials(int numberOfTrials) |
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setProbabilityOfSuccess(double probabilityOfSuccess) |
create, setBackend
@OptionMetadata(displayName="probability of success", description="The probability of success (default = 0.5).", commandLineParamName="prob", commandLineParamSynopsis="-prob <double>", displayOrder=1) public double getProbabilityOfSuccess()
public void setProbabilityOfSuccess(double probabilityOfSuccess)
@OptionMetadata(displayName="number of trials", description="The number of trials (default = 1).", commandLineParamName="n", commandLineParamSynopsis="-n <int>", displayOrder=1) public double getNumberOfTrials()
public void setNumberOfTrials(int numberOfTrials)
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class Distribution<org.deeplearning4j.nn.conf.distribution.BinomialDistribution>
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class Distribution<org.deeplearning4j.nn.conf.distribution.BinomialDistribution>
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class Distribution<org.deeplearning4j.nn.conf.distribution.BinomialDistribution>
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic void initializeBackend()
ApiWrapper
initializeBackend
in interface ApiWrapper<org.deeplearning4j.nn.conf.distribution.BinomialDistribution>
public org.deeplearning4j.nn.conf.distribution.BinomialDistribution getBackend()
ApiWrapper
getBackend
in interface ApiWrapper<org.deeplearning4j.nn.conf.distribution.BinomialDistribution>
getBackend
in class Distribution<org.deeplearning4j.nn.conf.distribution.BinomialDistribution>