-
Notifications
You must be signed in to change notification settings - Fork 547
np.int
was a deprecated alias for the builtin int
.
#1171
Comments
same issue. |
I have the same error.
EDIT : There is a PR #1159 but didn't pass the CI checks 🤔 |
Another workaround:
has worked for me for now. |
Same issue |
There are several open PRs to fix this issue -- do we know if this project is being actively maintained/monitored? |
Seems like it is not: https://snyk.io/advisor/python/scikit-optimize No update in two years May be worth looking at other packages e.g. optuna |
Same issue |
Isn't optuna also relying (at least partly) on skopt? |
Hey, I have tried fixing this issue --> #1187 |
Good job! When will be the next Release Version released? |
Tried fixing this issue too. Would not pass the tests - due to some version name inconsistency. |
same issue here :( |
Any information on when the issue will be solved in the library main branch? |
Same issue. |
The easiest way is to fork the repo or copy locally and fix it. |
A workaround that worked for me is to put these lines before fitting the estimator:
|
Same issue, Is it hard to update just one line? |
My version is R1.10.1. If my numpy's version is beyond or equal to R1.24.0, an error will output like this when skopt.space.Integer is used:
AttributeError: module 'numpy' has no attribute 'int'.
np.int
was a deprecated alias for the builtinint
. To avoid this error in existing code, useint
by itself.This is how to fix it:
https://stackoverflow.com/questions/74844262/how-can-i-solve-error-module-numpy-has-no-attribute-float-in-python
Hope next version will fix it.
The text was updated successfully, but these errors were encountered: