Skip to content

Commit

Permalink
Update training.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasBoTang authored May 9, 2024
1 parent 352ef4e commit bfd55c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/content/examples/training.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ The example to learn shortest path with linear model is as follows:
# set optimizer
optimizer = torch.optim.Adam(predmodel.parameters(), lr=1e-3)
# init perturbed optimizer
ptb = pyepo.func.perturbedOpt(optmodel, n_samples=10, epsilon=0.5, processes=2)
ptb = pyepo.func.perturbedOpt(optmodel, n_samples=10, sigma=0.5, processes=2)
# init loss
criterion = nn.MSELoss()
Expand Down Expand Up @@ -243,7 +243,7 @@ The example to learn shortest path with linear model is as follows:
# set optimizer
optimizer = torch.optim.Adam(predmodel.parameters(), lr=1e-3)
# init PFY loss
pfy = pyepo.func.perturbedFenchelYoung(optmodel, n_samples=10, epsilon=0.5, processes=2)
pfy = pyepo.func.perturbedFenchelYoung(optmodel, n_samples=10, sigma=0.5, processes=2)
# training
num_epochs = 20
Expand Down

0 comments on commit bfd55c7

Please sign in to comment.