def transform(self, X, y=None):
        return self.classifier.decision_function(X).reshape(-1, 1)
`X` is expected to be an array-like or a sparse matrix.
dataset/ETHPy150Open machinalis/iepy/iepy/extraction/relation_extraction_classifier.py/ClassifierAsFeature.transform