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 both - _transform_pandasand- _transform_numpyare 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.