ray.data.preprocessors.MaxAbsScaler.fit_transform#

MaxAbsScaler.fit_transform(ds: Dataset) Dataset#

Fit this Preprocessor to the Dataset and then transform the Dataset.

Calling it more than once will overwrite all previously fitted state: preprocessor.fit_transform(A).fit_transform(B) is equivalent to preprocessor.fit_transform(B).

Parameters:

ds – Input Dataset.

Returns:

The transformed Dataset.

Return type:

ray.data.Dataset