Class Scipy


  • public class Scipy
    extends Object
    Function of the scipy library that was used in scikit-learn.
    • Constructor Detail

      • Scipy

        public Scipy()
    • 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.