Open rbankosegger opened 5 years ago
It looks like you are using an older version of hyperopt-sklearn
that is only compatible with an older version of scikit-learn
. This was fixed in #87 but looks like it isn't in the current pip version.
Your best bet would be to install the version on master directly. You can either clone it and install, or install directly with a command like this:
pip install git+https://github.com/hyperopt/hyperopt-sklearn.git
Even when I'm doing install from git I'm getting this error
I am also facing similar error of broken pipe, Please help us solve this @bjkomer
I'm getting the same error.
@dragomir44 which line is causing the error? Are you using master?
From searching through the code, the only place where n_iter
is used as an argument is with BernoulliRBM, which according to the sklearn docs does indeed have that parameter.
@bjkomer Hi I'm also getting a similar issue
~\Anaconda3\lib\site-packages\hpsklearn\components.py in sklearn_SGDClassifier(*args, **kwargs)
89 def sklearn_DecisionTreeClassifier(*args, **kwargs):
90 return sklearn.tree.DecisionTreeClassifier(*args, **kwargs)
---> 91
92 @scope.define
93 def sklearn_Lasso(*args, **kwargs):
TypeError: __init__() got an unexpected keyword argument 'n_iter'
On line 91 of components.py. I cloned a copy of the repository but I can't find out where n_iter is located that's causing the problem.
TypeError: init() got an unexpected keyword argument 'n_iter'
@bjkomer Hi I'm also getting a similar issue
~\Anaconda3\lib\site-packages\hpsklearn\components.py in sklearn_SGDClassifier(*args, **kwargs) 89 def sklearn_DecisionTreeClassifier(*args, **kwargs): 90 return sklearn.tree.DecisionTreeClassifier(*args, **kwargs) ---> 91 92 @scope.define 93 def sklearn_Lasso(*args, **kwargs): TypeError: __init__() got an unexpected keyword argument 'n_iter'
On line 91 of components.py. I cloned a copy of the repository but I can't find out where n_iter is located that's causing the problem.
Did you mange to fix this error?
For me pip install git+https://github.com/hyperopt/hyperopt-sklearn.git
did the trick. Thanks!
Hi! I tried to run the very simple example from the Usage section:
However, this does not work for me. I get the following output:
Here is some info about my system:
My hyperopt version is 0.2, installed via
pip
.When running above import statements, I also get the following error:
Apart from that, I have a three python jobs running (Scikit-learn' CV-Gridsearch) and a bunch of other jupyter notebooks open.
Thanks for the help!