Documentation of 'mikera.vectorz.ops.CrossEntropy' Java class
CrossEntropy
mikera.vectorz.ops

Class CrossEntropy



  • public final class CrossEntropy
    extends Op2
    Binary operator to compute cross entropy between an output and target value given two probability values in range 0..1
    • Constructor Detail

      • CrossEntropy

        public CrossEntropy()
    • Method Detail

      • apply

        public double apply(double x,
                            double y)
        Specified by:
        apply in class Op2
      • applyTo

        public void applyTo(double[] data,
                            int start,
                            int length,
                            AVector b)
        Overrides:
        applyTo in class Op2
      • getDerivative

        public Op2 getDerivative(int i)
        Description copied from class: Op2
        Gets the derivative of this Op2 with respect to the specified parameter (0 or 1)
        Overrides:
        getDerivative in class Op2
        Returns:

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.