Closed vectosaurus closed 3 years ago
Does this issue persist on the master branch version of tune-sklearn?
Yes, I've installed the library using pip. I am not using any other branches
Could you try pip install -U git+https://github.com/ray-project/tune-sklearn.git
? This will install the development version of tune-sklearn. If the issue still persists after that, try updating your Ray package.
@Yard1
I tried the install you provided but got the following error
ImportError: cannot import name 'Domain' from 'ray.tune.sample' (/home/ubuntu/anaconda3/lib/python3.7/site-packages/ray/tune/sample.py)
The command you gave installs tune-sklearn-0.0.8
so I went ahead and upgraded to tune-sklearn-0.1.0
. Doing that now gives me the following error
TypeError: __init__() got an unexpected keyword argument 'sk_n_jobs'
The version number is a mistake on our part, the code I gave you will install the latest version of the package, consistent with the master branch of this repository.
You should update your Ray install.
pip uninstall ray tune-sklearn
pip install -U ray[tune]
pip install -U git+https://github.com/ray-project/tune-sklearn.git
This should work. Let me know how it goes.
I tried the steps above, I am getting the same error-
TypeError: __init__() got an unexpected keyword argument 'sk_n_jobs'
I am using the example from here
Can you try creating a new conda/virtualenv environment and running the commands I posted again? There seems to be an issue with packages you have installed.
@Yard1
This works with venv now. Thanks a lot for the inputs.
Lastly, could help me with a couple of things?
Thanks!
You can use tune's search spaces for all algorithms - https://docs.ray.io/en/master/tune/tutorials/overview.html#how-do-i-choose-hyperparameter-ranges. Just pass the config dict as param_distributions
argument.
You can pass the fit arguments through the fit
method of TuneSearchCV
, eg.
hyperopt_tune_search.fit(X, y, my_fit_param="a")
Thanks a lot @Yard1
Running the hyperopt example for
TuneSearchCV
from the readme page yields the following errorTypeError: init() got an unexpected keyword argument 'include_dashboard'
This is the code I am running. I face the same issue with the
'bayesian'
optimization too. How to fix this?