-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XGBoost incremental training, issue with ONNX Conversion #18841
Comments
@xadupre would you please help with this issue? |
This error means that a leaf returns a class index outside the expected number of classes. The attribute |
XGBoost version 2.0.2 |
What about onnxmltools? |
onnxmltools 1.11.2 |
Is it possible to try with 1.12.0? We released it last month. It fixes some bugs with xgboost >= 2.0. |
Sure Thanks... |
Same error even after upgrading |
Thanks for trying. I'll try to replicate your issue unless you already have a full script to share. |
This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details. |
Thanks for the tip @xadupre. I've been trying to convert a PySpark XGBoost model, and because it doesn't have |
Describe the issue
Trained an XGBoost with incremental learning.
facing an issue with ONNX model
RUNTIME_EXCEPTION : Non-zero status code returned while running TreeEnsembleClassifier node. Name:'TreeEnsembleClassifier' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/ml/tree_ensemble_aggregator.h:201 void onnxruntime::ml::detail::TreeAggregatorSum<InputType, ThresholdType, OutputType>::ProcessTreeNodePrediction(onnxruntime::InlinedVector<onnxruntime::ml::detail::ScoreValue >&, const onnxruntime::ml::detail::TreeNodeElement&, gsl::span<const onnxruntime::ml::detail::SparseValue >) const [with InputType = float; ThresholdType = float; OutputType = float; onnxruntime::InlinedVector<onnxruntime::ml::detail::ScoreValue > = absl::lts_20220623::InlinedVector<onnxruntime::ml::detail::ScoreValue, 6, std::allocator<onnxruntime::ml::detail::ScoreValue > >] it->i < (int64_t)predictions.size() was false.
if not incremental model, only fitting one time self.model.fit(vectors, labels, **fit_params)
No issue with ONNX model, predictions are working fine.
To reproduce
Steps are detailed above.
Urgency
No response
Platform
Mac
OS Version
MacOS Ventura
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.16.1
ONNX Runtime API
Python
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: