Closed naoko closed 7 years ago
It looks like the error is caused by an incompatibility with the newest version of numpy
. I'm not sure if that is a numpy
bug or if that change is intended. It works fine with version 1.11.0 but not 1.12.0.
As a workaround you could try switching to the previous numpy
version. Something like pip install -I numpy==1.11.0
should do the trick.
Depending on which version of hyperopt-sklearn
you are running, you might come across an error in the 5th cell saying there is no attribute _best_classif
. That has been renamed to _best_learner
when regressors were added. You can switch that line to instead print estimator._best_learner
or even better, estimator.best_model()
which should always work going forward. The notebook should really be updated to reflect that.
It sure did worked. Thank you very much! Maybe it is good idea to pin Numpy version. Also running Demo notebook required to install 2 libs that's not on setup.py
%%bash
pip install git+https://github.com/jaberg/skdata.git
pip install matplotlib
So I added that above import
.
I've made PR but feel free to reject. My feeling won't hurt :) especially notebook change (diff) is so ugly so I can understand!
https://github.com/hyperopt/hyperopt-sklearn/pull/62
Thank you again for your quick response!
I was trying to follow demo notebook published here: http://nbviewer.jupyter.org/github/hyperopt/hyperopt-sklearn/blob/master/notebooks/Demo-Iris.ipynb but I'm getting the following error on cell # 4. I tried to run just
estimator.fit(X_train,y_train)
after cell #3 execution but I'm getting the same error. Any insight would be appreciated.