Skip to content
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

Closed
bighuang624 opened this issue Aug 6, 2019 · 1 comment
Closed

How to set hyperparameters search range and run the search? #45

bighuang624 opened this issue Aug 6, 2019 · 1 comment

Comments

@bighuang624
Copy link

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 and single_cpu_template.py to be able to perform a hyperparameter search:

  1. set tunable=True for some params in def add_model_specific_args(parent_parser, root_dir) in LightningTemplateModel, e.g., parser.opt_list('--learning_rate', default=0.001*8, type=float, options=[0.0001, 0.0005, 0.001, 0.005], tunable=True)
  2. annotate main(hyperparams) and add hyperparams.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.

@bighuang624
Copy link
Author

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant