Skip to content

Commit 25f8c57

Browse files
Hannah14295hrehard
andauthored
fix: import pprint in mtrl finetuning example notebook (#6085)
mtrl_finetuning_example_notebook_v3_prod.ipynb calls pprint() to display the trainer's default hyperparameters but never imports it, so that cell raises NameError: name 'pprint' is not defined. Add 'from pprint import pprint'. Co-authored-by: hrehard <hrehard@amazon.com>
1 parent f054786 commit 25f8c57

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎v3-examples/model-customization-examples/mtrl_finetuning_example_notebook_v3_prod.ipynb‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,8 @@
457457
"metadata": {},
458458
"outputs": [],
459459
"source": [
460+
"from pprint import pprint\n",
461+
"\n",
460462
"# View and customize hyperparameters\n",
461463
"print(\"Default Hyperparameters:\")\n",
462464
"pprint(trainer.hyperparameters.to_dict())\n",

0 commit comments

Comments
 (0)