Converting XGBoost to Onnx using Sklearn Converter fails
See original GitHub issuecontainer.add_node('TreeEnsembleClassifier', operator.input_full_names, operator.output_full_names, op_domain='ai.onnx.ml', **attr_pairs)
XGBoost.py: convert (ln. 215) is calling the add_node method of the container argument which has an optional argument ‘name’, but is later raising RuntimeError: Parameter name cannot be empty and must be a string.
since it is not being set by the calling method.
Similar invocations of the same method in the above described file should be applied with the same fix.
Thanks
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Convert a pipeline with a XGBoost model - ONNX
sklearn -onnx only converts scikit-learn models into ONNX but many libraries ... The error message tells no converter was found # for :epkg:`XGBoost`...
Read more >Convert a pipeline with a XGBoost model — sklearn-onnx ...
This example considers a pipeline including a XGBoost model. sklearn-onnx can convert the whole pipeline as long as it knows the converter associated...
Read more >Error in converting SageMaker XGBoost model to ONNX model
I'm trying to convert a SageMaker XGBoost model to ONNX, in order to use the ONNX model in .Net application using ML.NET.
Read more >python/onnx/sklearn-onnx/docs/tutorial/plot_gexternal_xgboost.py ...
_example-xgboost: Convert a pipeline with a XGBoost model ... as e: print(e) # The error message tells no converter was found # for...
Read more >onnxmltools - PyPI
Converts Machine Learning models to ONNX. ... If you are converting a model from scikit-learn, Core ML, Keras, LightGBM, SparkML, XGBoost, H2O, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m adding unit tests to cover that scenario in sklearn-onnx. See https://github.com/onnx/sklearn-onnx/pull/262. Once this PR is merged, this issue will be fixed.
I can confirm that this issue has been resolved. Thank you for your help.
Kind regards
On Thu, 9 Jan 2020, 21:16 ankit1200, notifications@github.com wrote: