Skip to content

Commit

Permalink
Fix validation loss computation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeanselme authored Jan 2, 2021
1 parent af1871b commit 3e991e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dsm/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ def train_dsm(model,
x_valid,
t_valid_,
e_valid_,
elbo=False)
elbo=False,
risk=str(r+1))

valid_loss = valid_loss.detach().cpu().numpy()
costs.append(float(valid_loss))
Expand Down

0 comments on commit 3e991e4

Please sign in to comment.