ray.data.preprocessor.Preprocessor.preferred_batch_format#
- classmethod Preprocessor.preferred_batch_format() BatchFormat [source]#
Batch format hint for upstream producers to try yielding best block format.
The preferred batch format to use if both
_transform_pandas
and_transform_numpy
are implemented. Defaults to Pandas.Can be overriden by Preprocessor classes depending on which transform path is the most optimal.
DeveloperAPI: This API may change across minor Ray releases.