Trainer.hyperparameter_search doesn't work for me
HI, as a beginner I try to follow few examples. Looking at this repo " Fine-tuning a model on a text classification task " (here -https://bit.ly/3mEBqTM) I tried to implement the trainer.hyperparameter_search() method with either “optuna” and “ray [tune]” .!pip install optuna --> seems to work fineWhen running the example shown I keep getting:RuntimeError: At least one of optuna or ray should be installed. To install optuna runpip install optuna.To install ray runpip install ray[tune].I tried installing both but none works… any guidance would be highly appreciated…thanks, -Ofer
2020-12-21T18:05:54Z
There is some environment problem it seems, sincetransformersdidn’t detect you haveoptunainstalled. I’d try restarting your kernel since you seem to be in a notebook.
2020-12-22T15:05:42Z
Yap… indeed, simple and worked. Thanks