AttributeError: partially initialized module 'xgboost' has no attribute 'DMatrix' (most likely due to a circular import) #1722
-
I am running into an issue using the xgboost classifer from adversarial robustness toolbox (ART). AttributeError: partially initialized module 'xgboost' has no attribute 'DMatrix' (most likely due to a circular import) clone the ART repo. 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): MacOS |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This questions seems to be a duplicate of #1717. Let's continue the discussion in #1717. |
Beta Was this translation helpful? Give feedback.
This questions seems to be a duplicate of #1717. Let's continue the discussion in #1717.