xgboost example #1717
Unanswered
EvanGertis
asked this question in
Q&A
xgboost example
#1717
Replies: 1 comment
-
Hi @EvanGertis Thank you for using ART! It looks like you are using a very old version of ART. Would it be possible to upgrade ART to 1.10.2? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
AttributeError: partially initialized module 'xgboost' has no attribute 'DMatrix' (most likely due to a circular import)
Expected behavior
The program should print out the accuracy for the classification of the MNIST Model.
Actual
Traceback (most recent call last):
File "/Users/evangertis/development/PythonAutomation/ART_examples/xgboost.py", line 7, in
import xgboost as xgb
File "/Users/evangertis/development/PythonAutomation/ART_examples/xgboost.py", line 31, in
dtrain = xgb.DMatrix(x_train, label=np.argmax(y_train, axis=1))
AttributeError: partially initialized module 'xgboost' has no attribute 'DMatrix' (most likely due to a circular import)
Screenshots

System information (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions