def transform(self, X, y=None, copy=None):
        copy = copy if copy is not None else self.copy
        return binarize(X, threshold=self.threshold, copy=copy)
Binarize each element of X
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/preprocessing/data.py/Binarizer.transform