Skip to content

Commit

Permalink
Reduce max_jobs in hyperparameter_tuning_mxnet_gluon_cifar10_random_s…
Browse files Browse the repository at this point in the history
…earch.ipynb (#3400)

* reduce max_jobs

* change second max_jobs

* markdown edit
  • Loading branch information
atqy authored May 17, 2022
1 parent 6e3ba5b commit f084267
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Next, we can kick off our random search. We've specified the total number of training jobs to be only 20 and the maximum number of parallel jobs to be 2. Below we have printed out the results from having used 120 training jobs and a maximum number of parallel jobs to be 8. But this is a large amount and could make the cost of this notebook at much as $400 to run. (That output will be overwritten when you run the tuning job with the new parameter values.) The larger set of values exceeds the default concurrent instance limit for ml.p3.8xlarge instances. For testing this notebook, the smaller values control costs and allow you to complete successfully without requiring a service limit increase.\n",
"Next, we can kick off our random search. We've specified the total number of training jobs to be only 5 and the maximum number of parallel jobs to be 2. Below we have printed out the results from having used 120 training jobs and a maximum number of parallel jobs to be 8. But this is a large amount and could make the cost of this notebook at much as $400 to run. (That output will be overwritten when you run the tuning job with the new parameter values.) The larger set of values exceeds the default concurrent instance limit for ml.p3.8xlarge instances. For testing this notebook, the smaller values control costs and allow you to complete successfully without requiring a service limit increase.\n",
"\n",
"_Note, this step may take up to an hour to complete. Even if you loose connection with the notebook in the middle, as long as the notebook instance continues to run, `jobs` should still be successfully created for future use._"
]
Expand All @@ -297,7 +297,7 @@
"source": [
"%%time\n",
"\n",
"jobs = rt.random_search(fit_random, hyperparameters, max_jobs=20, max_parallel_jobs=2)"
"jobs = rt.random_search(fit_random, hyperparameters, max_jobs=5, max_parallel_jobs=2)"
]
},
{
Expand Down Expand Up @@ -1291,7 +1291,7 @@
" objective_metric_name,\n",
" hyperparameter_ranges,\n",
" metric_definitions,\n",
" max_jobs=30,\n",
" max_jobs=5,\n",
" max_parallel_jobs=2,\n",
")"
]
Expand Down

0 comments on commit f084267

Please sign in to comment.