public class LossLayer extends FeedForwardLayer<org.deeplearning4j.nn.conf.layers.LossLayer> implements weka.core.OptionHandler, java.io.Serializable
Constructor and Description |
---|
LossLayer()
Constructor for setting some defaults.
|
Modifier and Type | Method and Description |
---|---|
LossFunction<? extends org.nd4j.linalg.lossfunctions.ILossFunction> |
getLossFn() |
java.lang.String[] |
getOptions()
Gets the current settings of the Classifier.
|
java.lang.String |
globalInfo()
Global info.
|
void |
initializeBackend()
Initialize the DL4J backend.
|
java.util.Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setLossFn(LossFunction<? extends org.nd4j.linalg.lossfunctions.ILossFunction> lossFn) |
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
getActivationFunction, getNOut, setActivationFunction, setNOut
create, getBackend, getLayerName, setBackend, setLayerName
@OptionMetadata(displayName="loss function", description="The loss function to use (default = LossMCXENT).", commandLineParamName="lossFn", commandLineParamSynopsis="-lossFn <specification>", displayOrder=1) public LossFunction<? extends org.nd4j.linalg.lossfunctions.ILossFunction> getLossFn()
public void setLossFn(LossFunction<? extends org.nd4j.linalg.lossfunctions.ILossFunction> lossFn)
public java.lang.String globalInfo()
public java.util.Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class FeedForwardLayer<org.deeplearning4j.nn.conf.layers.LossLayer>
public java.lang.String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class FeedForwardLayer<org.deeplearning4j.nn.conf.layers.LossLayer>
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class FeedForwardLayer<org.deeplearning4j.nn.conf.layers.LossLayer>
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.layers.LossLayer>