library.phases.phases_implementation.data_preprocessing.feature_scaling module¶
- class library.phases.phases_implementation.data_preprocessing.feature_scaling.FeatureScaling(dataset: Dataset)[source]¶
Bases:
object
- scale_features(scaler: str, columnsToScale: list[str], save_plots: bool = False, save_path: str = None) str [source]¶
Scales the features in the dataset
- Parameters:
scaler (str) – The scaler to use (‘minmax’, ‘robust’, ‘standard’)
columnsToScale (list[str]) – The columns to scale
save_plots (bool) – Whether to save plots before and after scaling
save_path (str) – The path to save the plots
- Returns:
Message indicating the number of features scaled
- Return type:
str