Skip to content

DOC update description of X in FunctionTransformer.transform() #24844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jan 27, 2023
9 changes: 6 additions & 3 deletions sklearn/preprocessing/_function_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ def fit(self, X, y=None):

Parameters
----------
X : array-like, shape (n_samples, n_features)
X : {array-like, sparse-matrix} of shape (n_samples, n_features) \
if `validate=True` else any object that `func` can handle
Input array.

y : Ignored
Expand All @@ -224,7 +225,8 @@ def transform(self, X):

Parameters
----------
X : array-like, shape (n_samples, n_features)
X : {array-like, sparse-matrix} of shape (n_samples, n_features) \
if `validate=True` else any object that `func` can handle
Input array.

Returns
Expand All @@ -240,7 +242,8 @@ def inverse_transform(self, X):

Parameters
----------
X : array-like, shape (n_samples, n_features)
X : {array-like, sparse-matrix} of shape (n_samples, n_features) \
if `validate=True` else any object that `inverse_func` can handle
Input array.

Returns
Expand Down