org.neuroph.contrib.learning
Class SoftMax
- java.lang.Object
-
- org.neuroph.core.transfer.TransferFunction
-
- org.neuroph.contrib.learning.SoftMax
-
- All Implemented Interfaces:
- java.io.Serializable
public class SoftMax extends TransferFunction
Activation function which enforces that output neurons have probability distribution (sum of all outputs is one)- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetDerivative(double net)Returns the first derivative of this function.doublegetOutput(double netInput)Returns the ouput of this function.
-
-
-
Constructor Detail
-
SoftMax
public SoftMax(Layer layer)
-
-
Method Detail
-
getOutput
public double getOutput(double netInput)
Description copied from class:TransferFunctionReturns the ouput of this function.- Specified by:
getOutputin classTransferFunction- Parameters:
netInput- total input
-
getDerivative
public double getDerivative(double net)
Description copied from class:TransferFunctionReturns the first derivative of this function. Note: should this method should be abstract?- Overrides:
getDerivativein classTransferFunction- Parameters:
net- total input
-
-
DMelt 3.0 © DataMelt by jWork.ORG