On Error running xgboost nodebook. #4864
PengliuIBM
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, @marfriaz
This is just a small question When running notebook step by step:
https://github.com/aws/amazon-sagemaker-examples/blob/main/introduction_to_amazon_algorithms/xgboost_mnist/xgboost_mnist.ipynb
, encountering an issue:
AlgorithmError: framework error: Traceback (most recent call last): File "/miniconda3/lib/python3.9/site-packages/sagemaker_xgboost_container/algorithm_mode/train.py", line 319, in train_job bst = xgb.train( File "/miniconda3/lib/python3.9/site-packages/xgboost/core.py", line 620, in inner_f return func(**kwargs) File "/miniconda3/lib/python3.9/site-packages/xgboost/training.py", line 185, in train bst.update(dtrain, i, obj) File "/miniconda3/lib/python3.9/site-packages/xgboost/core.py", line 1918, in update _check_call(_LIB.XGBoosterUpdateOneIter(self.handle, File "/miniconda3/lib/python3.9/site-packages/xgboost/core.py", line 279, in _check_call raise XGBoostError(py_str(LIB.XGBGetLastError())) xgboost.core.XGBoostError: [02:02:41] ../src/tree/updater_colmaker.cc:177: Check failed: param.max_depth > 0 (0 vs. 0) : exact tree method doesn't support unlimited depth. Stack trace: [bt] (0) /miniconda3/lib/python3.9/site-packages/xgboost/lib/libxgboost.so(+0x4064c9) [0x7f3955707
it looks as "the param_.max_depth > 0 (0 vs. 0) : exact tree method doesn't support unlimited depth"
as below code snappet, as max_depth should be range in 3-10, MinValue: 3 or 6 will be better to avoid Error?
@marfriaz, I saw you're owner of this one, is it correct understanding? Thanks.
BR,
patrick
Beta Was this translation helpful? Give feedback.
All reactions