-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: module 'numpy' has no attribute 'int'. #113
Comments
I had the same problem. I do not know if it helps you @notuntoward but I succesfully used BorutaPy with numpy==1.23.5. |
@the-holsti , that's good to know. Thanks. But hopefully, boruta_py will catch up soon, so that it remains viable into the future. |
I was able to solve this by patching |
@cluttered-cabinet thanks for that info. It might make sense to put up a pull request with your changes, but checking the existing PRs, it looks like this package isn't maintained. One of the PRs mentions ARFS as an alternative. I'm going to give it a try. |
@notuntoward I'm debating on doing the same...seems like ARFS does have good docs and it's up to date :) |
It is already patched here. It is not patched on pypi. So replace boruta_py.py with the file on github should solve the issue. |
Just replace np.int, np.float and np.bool for int, floar and bool on Boruta boruta_py.py |
Will this be patched on pypi? |
Waiting this change on pypi 🙏 |
When I run this:
boruta.fit(Xtrn, yTrn)
I get the error message below, indicating that boruta_py isn't compatible with numpy versions greater than 1.20. I had numpy version 1.24.2 installed. So I ran:
conda install "numpy<1.20"
and then I no longer got this error from Boruta. However, reverting to numpy<1.20 cost at least an hour of redoing my configuration of other packages.
A fix for this problem would be very helpful.
The error message
The text was updated successfully, but these errors were encountered: