ray.data.preprocessor.Preprocessor.fit_transform#
- Preprocessor.fit_transform(ds: Dataset) Dataset [source]#
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 topreprocessor.fit_transform(B)
.- Parameters:
ds – Input Dataset.
- Returns:
The transformed Dataset.
- Return type: