Package ai.sklearn4j.core.libraries
Class Scipy
- java.lang.Object
-
- ai.sklearn4j.core.libraries.Scipy
-
public class Scipy extends Object
Function of the scipy library that was used in scikit-learn.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScipy.NormalDistributionUtility functions in scipy related to normal distributions.
-
Constructor Summary
Constructors Constructor Description Scipy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NumpyArray<Double>logSumExponent(NumpyArray<Double> data, int axis)Compute the log of the sum of exponentials of input elements.
-
-
-
Method Detail
-
logSumExponent
public static NumpyArray<Double> logSumExponent(NumpyArray<Double> data, int axis)
Compute the log of the sum of exponentials of input elements. See https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.logsumexp.html- Parameters:
data- Input array to apply the calculations on.axis- The axis used by sum for reduction.- Returns:
- The result, np.log(np.sum(np.exp(a))) calculated in a numerically more stable way.
-
-