We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e7c0f0 commit 18c4dc1Copy full SHA for 18c4dc1
onnxmltools/convert/xgboost/common.py
@@ -12,5 +12,9 @@ def get_xgb_params(xgb_node):
12
else:
13
# XGBoost < 0.7
14
params = xgb_node.__dict__
15
-
+
16
+ if ('n_estimators' not in params and
17
+ hasattr(xgb_node, 'n_estimators')):
18
+ # xgboost >= 1.0.2
19
+ params['n_estimators'] = xgb_node.n_estimators
20
return params
requirements-dev.txt
@@ -14,4 +14,4 @@ scikit-learn
scipy
svm
wheel
-xgboost<=1.0.2
+xgboost
0 commit comments