recunn.loss
Class LossSoftmax
- java.lang.Object
-
- recunn.loss.LossSoftmax
-
- All Implemented Interfaces:
- java.io.Serializable, Loss
public class LossSoftmax extends java.lang.Object implements Loss
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description LossSoftmax()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidbackward(Matrix logprobs, Matrix targetOutput)static doublecalculateMedianPerplexity(Model model, java.util.List<DataSequence> sequences)static MatrixgetSoftmaxProbs(Matrix logprobs, double temperature)doublemeasure(Matrix logprobs, Matrix targetOutput)
-
-
-
Method Detail
-
calculateMedianPerplexity
public static double calculateMedianPerplexity(Model model, java.util.List<DataSequence> sequences) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
DataMelt 3.0 © DataMelt by jWork.ORG