ray.data.preprocessor.Preprocessor.transform_batch#

Preprocessor.transform_batch(data: DataBatchType) DataBatchType[source]#

Transform a single batch of data.

The data will be converted to the format supported by the Preprocessor, based on which _transform_* methods are implemented.

Parameters:

data – Input data batch.

Returns:

The transformed data batch. This may differ from the input type depending on which _transform_* methods are implemented.

Return type:

DataBatchType