hummingbird.ml.operator_converters.sklearn.label_encoder

Converter for scikit-learn label encoder.

hummingbird.ml.operator_converters.sklearn.label_encoder.convert_sklearn_label_encoder(operator, device, extra_config)[source]

Converter for sklearn.preprocessing.LabelEncoder

Args:

operator: An operator wrapping a sklearn.preprocessing.LabelEncoder model device: String defining the type of device the converted operator should be run on extra_config: Extra configuration used to select the best conversion strategy

Returns:

A PyTorch model