ray.data.preprocessors.StandardScaler.fit#

StandardScaler.fit(ds: Dataset) Preprocessor#

Fit this Preprocessor to the Dataset.

Fitted state attributes will be directly set in the Preprocessor.

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

Parameters:

ds – Input dataset.

Returns:

The fitted Preprocessor with state attributes.

Return type:

Preprocessor