ray.data.preprocessors.LabelEncoder.preferred_batch_format#
- classmethod LabelEncoder.preferred_batch_format() BatchFormat#
Batch format hint for upstream producers to try yielding best block format.
The preferred batch format to use if multiple transform methods (
_transform_pandas,_transform_numpy,_transform_arrow) 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.