Skip to content
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