question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Converting XGBoost to Onnx using Sklearn Converter fails

See original GitHub issue
container.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:closed
  • Created 4 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
xaduprecommented, Sep 19, 2019

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.

0reactions
francarucommented, Jan 9, 2020

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:

Can we close this issue since PR #337 https://github.com/onnx/onnxmltools/pull/337 has been merged?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/onnx/onnxmltools/issues/334?email_source=notifications&email_token=AFJBNRYN2FN4IZX37FHZ5MLQ46AYNA5CNFSM4IUYTQ52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIRUFWI#issuecomment-572736217, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFJBNR47TB74Z24HBF2L4RLQ46AYNANCNFSM4IUYTQ5Q .

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found