ray.data.preprocessors.Categorizer.fit#
- Categorizer.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 topreprocessor.fit(B)
.- Parameters:
ds – Input dataset.
- Returns:
The fitted Preprocessor with state attributes.
- Return type: