mikera.vectorz.ops
Class CrossEntropy
- java.lang.Object
-
- mikera.vectorz.Op2
-
- mikera.vectorz.ops.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 Summary
Constructors Constructor and Description CrossEntropy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleapply(double x, double y)voidapplyTo(double[] data, int start, int length, AVector b)Op2getDerivative(int i)Gets the derivative of this Op2 with respect to the specified parameter (0 or 1)-
Methods inherited from class mikera.vectorz.Op2
applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, averageValue, constrainValues, isBounded, isStochastic, maxValue, minValue, reduce, reduce, reduceZeros, reduceZeros, toString, validateOutput
-
-
-
-
Method Detail
-
applyTo
public void applyTo(double[] data, int start, int length, AVector b)
-
getDerivative
public Op2 getDerivative(int i)
Description copied from class:Op2Gets the derivative of this Op2 with respect to the specified parameter (0 or 1)- Overrides:
getDerivativein classOp2- Returns:
-
-
DMelt 3.0 © DataMelt by jWork.ORG