Skip to content

Commit

Permalink
black reformatting of two notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Rodriguez Zaurin authored and Javier Rodriguez Zaurin committed Oct 7, 2022
1 parent 49c163f commit 7e5d118
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions examples/notebooks/10_3rd_party_integration-RayTune_WnB.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
" quantity.\n",
"\n",
" \"\"\"\n",
"\n",
" def __init__(\n",
" self,\n",
" wb: object,\n",
Expand Down Expand Up @@ -1061,7 +1062,7 @@
" \"wandb\": {\n",
" \"project\": \"test\",\n",
" # \"api_key_file\": os.getcwd() + \"/wandb_api.key\",\n",
" \"api_key\": \"WNB_API_KEY\", \n",
" \"api_key\": \"WNB_API_KEY\",\n",
" },\n",
"}\n",
"\n",
Expand All @@ -1080,7 +1081,12 @@
" trainer = Trainer(\n",
" model,\n",
" objective=\"binary_focal_loss\",\n",
" callbacks=[RayTuneReporter, WnBReportBest(wb=wandb), early_stopping, model_checkpoint],\n",
" callbacks=[\n",
" RayTuneReporter,\n",
" WnBReportBest(wb=wandb),\n",
" early_stopping,\n",
" model_checkpoint,\n",
" ],\n",
" lr_schedulers={\"deeptabular\": deep_sch},\n",
" initializers={\"deeptabular\": XavierNormal},\n",
" optimizers={\"deeptabular\": deep_opt},\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
" quantity.\n",
"\n",
" \"\"\"\n",
"\n",
" def __init__(\n",
" self,\n",
" wb: object,\n",
Expand Down Expand Up @@ -1061,7 +1062,7 @@
" \"wandb\": {\n",
" \"project\": \"test\",\n",
" # \"api_key_file\": os.getcwd() + \"/wandb_api.key\",\n",
" \"api_key\": \"WNB_API_KEY\", \n",
" \"api_key\": \"WNB_API_KEY\",\n",
" },\n",
"}\n",
"\n",
Expand All @@ -1080,7 +1081,12 @@
" trainer = Trainer(\n",
" model,\n",
" objective=\"binary_focal_loss\",\n",
" callbacks=[RayTuneReporter, WnBReportBest(wb=wandb), early_stopping, model_checkpoint],\n",
" callbacks=[\n",
" RayTuneReporter,\n",
" WnBReportBest(wb=wandb),\n",
" early_stopping,\n",
" model_checkpoint,\n",
" ],\n",
" lr_schedulers={\"deeptabular\": deep_sch},\n",
" initializers={\"deeptabular\": XavierNormal},\n",
" optimizers={\"deeptabular\": deep_opt},\n",
Expand Down

0 comments on commit 7e5d118

Please sign in to comment.