NoPreprocessor¶
-
class
mastml.preprocessing.
NoPreprocessor
(preprocessor=None, as_frame=False)[source]¶ Bases:
mastml.preprocessing.BasePreprocessor
Class for having a “null” transform where the output is the same as the input. Needed by MAST-ML as a placeholder if certain workflow aspects are not performed.
See BasePreprocessor for information on args and methods
Methods Summary
fit
(X)fit_transform
(X[, y])Fit to data, then transform it. transform
(X)Methods Documentation
-
fit_transform
(X, y=None, **fit_params)[source]¶ Fit to data, then transform it.
Fits transformer to X and y with optional parameters fit_params and returns a transformed version of X.
- X : array-like of shape (n_samples, n_features)
- Input samples.
- y : array-like of shape (n_samples,) or (n_samples, n_outputs), default=None
- Target values (None for unsupervised transformations).
- **fit_params : dict
- Additional fit parameters.
- X_new : ndarray array of shape (n_samples, n_features_new)
- Transformed array.
-