jpmml / jpmml-sklearn

Java library and command-line application for converting Scikit-Learn pipelines to PMML
GNU Affero General Public License v3.0
531 stars 117 forks source link

Feature request: support for sklearn.preprocessing.OrdinalEncoder #104

Closed rwjmiller closed 5 years ago

rwjmiller commented 5 years ago

Although there is already support for LabelEncoder and PMMLLabelEncoder, which serve the same purpose, it would nevertheless be useful to have this one as well. There are two advantages of having OrdinalEncoder:

I would like to be able to switch from DataFrameMapper to ColumnTransformer in my pipelines, as the latter supports parallel processing and is potentially much faster to fit, but the lack of a supported option for label encoding is currently a deal breaker. If anyone knows of a workaround supported by jpmml-sklearn, I would be interested to hear it.