Comments (17)
Another workaround:
np.int = np.int64
has worked for me for now.
from scikit-optimize.
I have the same error.
return np.round(X_orig).astype(np.int)
Change it to:
return np.round(X_orig).astype(int)
in the file : skopt/space/transformers.py
EDIT : There is a PR #1159 but didn't pass the CI checks 🤔
from scikit-optimize.
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
from scikit-optimize.
There are several open PRs to fix this issue -- do we know if this project is being actively maintained/monitored?
from scikit-optimize.
same issue.
from scikit-optimize.
Same issue
from scikit-optimize.
Same issue
from scikit-optimize.
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
Isn't optuna also relying (at least partly) on skopt?
from scikit-optimize.
Hey, I have tried fixing this issue --> #1187
Hopefully, it will be sorted soon :)
from scikit-optimize.
Hey, I have tried fixing this issue --> #1187 Hopefully, it will be sorted soon :)
Good job! When will be the next Release Version released?
from scikit-optimize.
Tried fixing this issue too. Would not pass the tests - due to some version name inconsistency.
from scikit-optimize.
same issue here :(
from scikit-optimize.
Any information on when the issue will be solved in the library main branch?
from scikit-optimize.
Same issue.
from scikit-optimize.
The easiest way is to fork the repo or copy locally and fix it.
from scikit-optimize.
A workaround that worked for me is to put these lines before fitting the estimator:
import numpy as np
np.int = int
from scikit-optimize.
Same issue, Is it hard to update just one line?
from scikit-optimize.
Related Issues (20)
- mse needs updating (to friedman_mse?) HOT 1
- Question: Are plot_convergence and plot_objective supposed to look like identical plots?
- gp_minimize callback arguments / return value
- Bug Latin Hypercube sampling
- space.Integer and space.Float not allowed to be constant
- First and last values of each variable in the space are sampled 2 times less than the others
- Repeated error Using Forest_optimize HOT 1
- Something about earlystopping HOT 1
- Optimization space and initial points in x0 use inconsistent dimensions.
- How to introduce customized stop criteria HOT 1
- Inclusion of PRIMA solvers in Skit-Optimize HOT 5
- LOO in BayesSearchCV
- Error in strategy-comparison.ipynb
- AttributeError: 'Sum' object has no attribute 'gradient_x' when using sci-kit learn RBF for sci-kit optimize gp_minimize HOT 3
- Question: How to initialize a model in 4D search space, but run trials in only 2D for the first 100 trials through ask-tell interface. Then expand to 4D.
- Reproducibility when using BayesSearchCV with MLPRegressor
- using BayesSearchCV AttributeError module 'numpy' has no attribute 'int'. np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Doing this will not modify any behavior and is safe. When replacing np.int, you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information. HOT 4
- AttributeError when using deprecated alias np.int in NumPy HOT 1
- Scikit optimize abandoned? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scikit-optimize.