Open calebmadrigal opened 6 years ago
This is still an issue with coremltools 4.1, macOS 11.3 Beta and Scikit Learn 0.19.2.
Also the following OneHotEncoder, with only categorical features, produces the same error:
enc = OneHotEncoder(sparse=False, categorical_features=[True, True])
I can convert an sklearn OneHotEncoder in which every feature is categorical. Example of OneHotEncoder with all categorical features:
However, I cannot seem to convert a OneHotEncoder which has non-categorical features. For example, this conversion fails:
Here is the output: