from ._tree32 import _Tree32 is giving error when installing through pip
Closed this issue · 3 comments
ImportError: numpy.core.multiarray failed to import
when I used pip install ibug. Any reason why its not working for me?
Can you please provide:
- The version of python you're using.
- The version of ibug you installed.
- A complete code snippet that reproduces the error you are seeing.
Thank you!
I am using Python 3.10.11
I have installed ibug-0.0.9
This specific error happens when I am trying - "from ibug import IBUGWrapper"
I have resolved this error - The pip install did not update my numpy package, updating it to 1.23.1 as written in your requirement.txt fixed this issue.
Albeit I am getting a new error when this snippet of your given code is running -
"# extend GBRT model into a probabilistic estimator
prob_model = IBUGWrapper().fit(model, X_train, y_train, X_val=X_val, y_val=y_val)
Error message -
AssertionError Traceback (most recent call last)
in <cell line: 2>()
1 # extend GBRT model into a probabilistic estimator
----> 2 prob_model = IBUGWrapper().fit(model, X_train, y_train, X_val=X_val, y_val=y_val)
3
4 # predict mean and variance for unseen instances
5 location, scale = prob_model.pred_dist(X_test)
3 frames
/usr/local/lib/python3.10/dist-packages/ibug/parsers/parser_xgb.py in parse_xgb_ensemble(model)
11 # validation
12 model_params = model.get_params()
---> 13 assert model_params['reg_alpha'] == 0
14
15 string_data = _get_string_data_from_xgb_model(model)
AssertionError:
Hmm, what version of xgboost are you using? Or better yet, if you could provide a complete list of your dependencies and their versions (i.e., pip3 list
).