Module org.elasticsearch.xcore
Class Statistics
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.utils.Statistics
-
Method Summary
-
Method Details
-
softMax
public static double[] softMax(double[] values) Calculates the softMax of the passed values. AnyDouble.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)
-