Class MLMath

java.lang.Object
schule.ngb.zm.ml.MLMath

public final class MLMath extends Object
  • Method Details

    • sigmoid

      public static double sigmoid(double x)
    • sigmoidDerivative

      public static double sigmoidDerivative(double x)
    • tanh

      public static double tanh(double x)
    • tanhDerivative

      public static double tanhDerivative(double x)
    • normalize

      public static double[] normalize(double[] vector)
    • matrixMultiply

      public static double[][] matrixMultiply(double[][] A, double[][] B)
    • matrixScale

      public static double[][] matrixScale(double[][] A, double[][] S)
    • matrixSub

      public static double[][] matrixSub(double[][] A, double[][] B)
    • matrixAdd

      public static double[][] matrixAdd(double[][] A, double[][] B)
    • matrixTranspose

      public static double[][] matrixTranspose(double[][] matrix)
    • matrixApply

      public static double[][] matrixApply(double[][] A, DoubleUnaryOperator op)
    • copyMatrix

      public static double[][] copyMatrix(double[][] matrix)
    • toVector

      public static double[] toVector(double[][] matrix)
    • toMatrix

      public static double[][] toMatrix(double[] vector)
    • entropy

      public static double entropy(double[][] A, double[][] Y, int batch_size)
    • biasAdd

      public static double[][] biasAdd(double[][] A, double[] V)
    • biasAdjust

      public static double[] biasAdjust(double[] biases, double[][] delta)