ray.data.preprocessor.Preprocessor.fit#
- Preprocessor.fit(ds: Dataset) Preprocessor[source]#
 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: