java.lang.Object
org.elasticsearch.xpack.core.ml.inference.utils.Statistics

public final class Statistics extends Object
  • Method Details

    • softMax

      public static double[] softMax(double[] values)
      Calculates the softMax of the passed values. Any Double.isInfinite(), Double.NaN, or `null` values are ignored in calculation and returned as 0.0 in the softMax.
      Parameters:
      values - Values on which to run SoftMax.
      Returns:
      A new array containing the softmax of the passed values
    • sigmoid

      public static double sigmoid(double value)