sklearn.base.TransformerMixin
- 
class sklearn.base.TransformerMixin[source]
- 
Mixin class for all transformers in scikit-learn. Methodsfit_transform(X[, y])Fit to data, then transform it. - 
fit_transform(X, y=None, **fit_params)[source]
- 
Fit to data, then transform it. Fits transformer to Xandywith optional parametersfit_paramsand returns a transformed version ofX.- Parameters
- 
- 
Xarray-like of shape (n_samples, n_features)
- 
Input samples. 
- 
yarray-like of shape (n_samples,) or (n_samples, n_outputs), default=None
- 
Target values (None for unsupervised transformations). 
- 
**fit_paramsdict
- 
Additional fit parameters. 
 
- 
- Returns
- 
- 
X_newndarray array of shape (n_samples, n_features_new)
- 
Transformed array. 
 
- 
 
 
- 
Examples using sklearn.base.TransformerMixin
 
    © 2007–2020 The scikit-learn developers
Licensed under the 3-clause BSD License.
    https://scikit-learn.org/0.24/modules/generated/sklearn.base.TransformerMixin.html