Open maroxtn opened 2 years ago
For historical reason, the converter adds an operator ZipMap by default to represent probabilities. To remove it and get a matrix of probabilities instead of a zipmap operator, argument options={'zipmap': False}
must be added.
Bug Report
When following the guide on how to convert lightgbm and xgboost classifiers to the onnx format, then checking if the model is mobile compatible
python -m onnxruntime.tools.check_onnx_model_mobile_usability pipeline_xgboost.onnx
I get this error:Guides I followed: http://onnx.ai/sklearn-onnx/auto_tutorial/plot_gexternal_lightgbm.html and https://onnx.ai/sklearn-onnx/auto_tutorial/plot_gexternal_xgboost.html .
System information
Reproduction instructions
Expected behavior
The model passing the mobile compatibility check
Notes
I was able to isolate the error by :
But even then, I couldn't figure out what's wrong with the shapes.