Documentation of 'recunn.loss.LossSoftmax' Java class
LossSoftmax
recunn.loss

Class LossSoftmax

  • All Implemented Interfaces:
    java.io.Serializable, Loss


    public class LossSoftmax
    extends java.lang.Object
    implements Loss
    See Also:
    Serialized Form
    • Constructor Detail

      • LossSoftmax

        public LossSoftmax()
    • Method Detail

      • backward

        public void backward(Matrix logprobs,
                             Matrix targetOutput)
                      throws java.lang.Exception
        Specified by:
        backward in interface Loss
        Throws:
        java.lang.Exception
      • measure

        public double measure(Matrix logprobs,
                              Matrix targetOutput)
                       throws java.lang.Exception
        Specified by:
        measure in interface Loss
        Throws:
        java.lang.Exception
      • calculateMedianPerplexity

        public static double calculateMedianPerplexity(Model model,
                                                       java.util.List<DataSequence> sequences)
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getSoftmaxProbs

        public static Matrix getSoftmaxProbs(Matrix logprobs,
                                             double temperature)
                                      throws java.lang.Exception
        Throws:
        java.lang.Exception

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.