Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf8b91f commit 73532beCopy full SHA for 73532be
sklearn/preprocessing/function_transformer.py
@@ -61,4 +61,5 @@ def transform(self, X, y=None):
61
if self.validate:
62
X = check_array(X, self.accept_sparse)
63
64
- return (self.func or _identity)(X, *((y,) if self.pass_y else ()))
+ return (self.func is not None or _identity)(
65
+ X, *((y,) if self.pass_y else ()))
0 commit comments