Skip to content

Grid search with ray tune #50

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cdancette
Copy link
Collaborator

@cdancette cdancette commented Jul 1, 2020

Ray tune makes it possible to run grid searches with multiple gpus, and multiple jobs per gpus.

Grid search is called like this:

python -m bootstrap.grid -o <path> --gpu 0.5 --cpu 10

This will run training on all available gpus and cpus, with 10 cpus per training and 0.5 gpus assigned for each training (2 jobs per gpu).

The option file must contain a new option: "gridsearch:" which contains a list of options to modify, and their associated values should be a list containing all the values to test.

See the example file in tests/options-grid.yaml

Note that there is no analysis at the end. This will need an api to get the best results for a given experiment. which exists only as a script for now (compare.py).
But this is not essential given that we already have the compare that does this for us

When this is ready to go, I'll add some documentation

@cdancette cdancette force-pushed the grid-search branch 2 times, most recently from f84d227 to d7071f7 Compare July 1, 2020 21:37
@cdancette cdancette changed the title Grid search Grid search with ray tune Jul 1, 2020
Grid search is called like this:
python -m bootstrap.grid -o <path> --gpu 0.5 --cpu 10

This will run training on all available gpus and cpus, with 10 cpus per
training and 0.5 gpus assigned for each training (2 jobs per gpu).

The option file must contain a new option: "gridsearch:"
which contains a list of options to modify, and their
associated values should be a list containing all the values
to test.

See the example file in tests/options-grid.yaml

TODO: analysis at the end. This will need an api to get the best results
for a given run, which exists only as a script for now (compare.py)
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

Successfully merging this pull request may close these issues.

1 participant