Class Preprocessings


  • public class Preprocessings
    extends Object
    Utils method that scikit-learn provide to preprocess the data.
    • Constructor Detail

      • Preprocessings

        public Preprocessings()
    • Method Detail

      • binarizeInput

        public static NumpyArray<Double> binarizeInput​(NumpyArray<Double> x,
                                                       double threshold)
        Binarize a numpy array based on a given threshold.
        Parameters:
        x - Array to be binarized.
        threshold - The threshold for binarization. If the value in x is greater than threshold, the target element is 1.0 otherwise is 0.0.
        Returns:
        The binarized numpy array.