public class WeightNoise extends AbstractWeightNoise<org.deeplearning4j.nn.conf.weightnoise.WeightNoise> implements weka.core.OptionHandler, java.io.Serializable
Constructor and Description |
---|
WeightNoise() |
Modifier and Type | Method and Description |
---|---|
Distribution<? extends org.deeplearning4j.nn.conf.distribution.Distribution> |
getDistribution() |
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
void |
initializeBackend()
Initialize the DL4J backend.
|
boolean |
isAdditive() |
boolean |
isApplyToBias() |
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setAdditive(boolean additive) |
void |
setApplyToBias(boolean applyToBias) |
void |
setDistribution(Distribution<? extends org.deeplearning4j.nn.conf.distribution.Distribution> distribution) |
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
create, getBackend, setBackend
@OptionMetadata(displayName="distribution", description="The weight noise distribution (default = NormalDistribution(0,1)).", commandLineParamName="distribution", commandLineParamSynopsis="-distribution <Distribution>", displayOrder=1) public Distribution<? extends org.deeplearning4j.nn.conf.distribution.Distribution> getDistribution()
public void setDistribution(Distribution<? extends org.deeplearning4j.nn.conf.distribution.Distribution> distribution)
@OptionMetadata(displayName="applyToBias", description="Whether to apply it to the bias as well (default = false).", commandLineParamName="applyToBias", commandLineParamSynopsis="-applyToBias <boolean>", displayOrder=2) public boolean isApplyToBias()
public void setApplyToBias(boolean applyToBias)
@OptionMetadata(displayName="isAdditive", description="Whether noise is added to weights or multiplied (default = true).", commandLineParamName="isAdditive", commandLineParamSynopsis="-isAdditive <boolean>", displayOrder=2) public boolean isAdditive()
public void setAdditive(boolean additive)
public void initializeBackend()
ApiWrapper
initializeBackend
in interface ApiWrapper<org.deeplearning4j.nn.conf.weightnoise.WeightNoise>
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class AbstractWeightNoise<org.deeplearning4j.nn.conf.weightnoise.WeightNoise>
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class AbstractWeightNoise<org.deeplearning4j.nn.conf.weightnoise.WeightNoise>
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class AbstractWeightNoise<org.deeplearning4j.nn.conf.weightnoise.WeightNoise>
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supported