-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set hyperparameters search range and run the search? #45
Comments
Sorry that I found myself modifying the wrong LightningTemplateModel, and now it is ok for hyperparameters search with my solution. Maybe you can add some explanations in the document to make it more clear. Thanks for your work and sorry again for disturbing. |
luiscape
pushed a commit
to luiscape/pytorch-lightning
that referenced
this issue
Jan 17, 2020
- Padding on left/right sides should be equal - Increase space between lists in left nav - New styles for search box - Search prompt should be either 'Docs' or 'Tutorials'
luiscape
pushed a commit
to luiscape/pytorch-lightning
that referenced
this issue
Jan 17, 2020
Fix code formatting in notes and sphinx 2.0 compatibility
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for your powerful project and it's really helpful. I 'd like to try it for my current research if everything goes well.
My problem is, how to set hyperparameters search range and run the search? I 've read the chapters 'CPU hyperparameter search' and 'Running grid search on a cluster' in your document, however, I guess it is not very clear as there is only a few lines of code in 'CPU hyperparameter search' chapter without explanation (and
main_local
appears in the code without declaration).Here is my trial to change
LightningTemplateModel
andsingle_cpu_template.py
to be able to perform a hyperparameter search:tunable=True
for some params indef add_model_specific_args(parent_parser, root_dir)
inLightningTemplateModel
, e.g.,parser.opt_list('--learning_rate', default=0.001*8, type=float, options=[0.0001, 0.0005, 0.001, 0.005], tunable=True)
main(hyperparams)
and addhyperparams.optimize_parallel_cpu( main, nb_trials=20, nb_workers=1 )
However, it doesn't seem to work. So how can I set hyperparameters search range and run the search?
Sorry if my presentation is unclear (as I 'm not a native speaker). Thanks.
The text was updated successfully, but these errors were encountered: