ray.data.preprocessor.Preprocessor.fit
ray.data.preprocessor.Preprocessor.fit#
- Preprocessor.fit(dataset: 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
dataset – Input dataset.
- Returns
The fitted Preprocessor with state attributes.
- Return type