Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
JQGoh committed Dec 11, 2024
1 parent 2e3d7c6 commit eb17a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbs/core.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3172,12 +3172,12 @@
" mean = default_optimizer_predict.loc[:, nf_model.__name__].mean()\n",
"\n",
" # using a customized optimizer\n",
" models2 = [nf_model(**params)]\n",
" optimizer = torch.optim.Adadelta(params=models2[0].parameters(), rho=0.75)\n",
" scheduler=torch.optim.lr_scheduler.StepLR(\n",
" optimizer=optimizer, step_size=10e7, gamma=0.5\n",
" )\n",
"\n",
" models2 = [nf_model(**params)]\n",
" models2[0].set_configure_optimizers(\n",
" optimizer=optimizer,\n",
" scheduler=scheduler,\n",
Expand Down

0 comments on commit eb17a4d

Please sign in to comment.