bigframes.ml.preprocessing.MaxAbsScaler#

class bigframes.ml.preprocessing.MaxAbsScaler[source]#

Scale each feature by its maximum absolute value.

This estimator scales and translates each feature individually such that the maximal absolute value of each feature in the training set will be 1.0. It does not shift/center the data, and thus does not destroy any sparsity.

fit(X: DataFrame | Series | DataFrame | Series, y=None) MaxAbsScaler[source]#

Compute the maximum absolute value to be used for later scaling.

Parameters:
Returns:

Fitted scaler.

Return type:

MaxAbsScaler

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:

bigframes.dataframe.DataFrame