bigframes.ml.preprocessing.MinMaxScaler#
- class bigframes.ml.preprocessing.MinMaxScaler[source]#
Transform features by scaling each feature to a given range.
This estimator scales and translates each feature individually such that it is in the given range on the training set, e.g. between zero and one.
- fit(X: DataFrame | Series | DataFrame | Series, y=None) MinMaxScaler[source]#
Compute the minimum and maximum to be used for later scaling.
- Parameters:
X (bigframes.dataframe.DataFrame or bigframes.series.Series or pandas.core.frame.DataFrame or pandas.core.series.Series) – The Dataframe or Series with training data.
y (default None) – Ignored.
- Returns:
Fitted scaler.
- Return type:
- transform(X: DataFrame | Series | DataFrame | Series) DataFrame[source]#
Scale the data.
- Parameters:
X (bigframes.dataframe.DataFrame or bigframes.series.Series or pandas.core.frame.DataFrame or pandas.core.series.Series) – The DataFrame or Series to be transformed.
- Returns:
Transformed result.
- Return type: