Skip to content

Commit 1854432

Browse files
committed
Fixed: HPO Analyze Results notebook to catch running before a best job.
1 parent fc824d5 commit 1854432

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hyperparameter_tuning/analyze_results/HPO_Analyze_TuningJob_Results.ipynb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@
6666
"outputs": [],
6767
"source": [
6868
"from pprint import pprint\n",
69-
"print(\"Best model found so far:\")\n",
70-
"pprint(tuning_job_result['BestTrainingJob'])"
69+
"if tuning_job_result.get('BestTrainingJob',None):\n",
70+
" print(\"Best model found so far:\")\n",
71+
" pprint(tuning_job_result['BestTrainingJob'])\n",
72+
"else:\n",
73+
" print(\"No training jobs have reported results yet.\")"
7174
]
7275
},
7376
{

0 commit comments

Comments
 (0)