Skip to content

Commit

Permalink
modified: dsm/utilities.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragnagpal committed Feb 13, 2021
1 parent 6af6ac9 commit e759e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dsm/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def pretrain_dsm(model, t_train, e_train, t_valid, e_valid,
optimizer.step()

valid_loss = 0
for r in range(model.risks):
for r in range(model.risks):
valid_loss += unconditional_loss(premodel, t_valid, e_valid, str(r+1))
valid_loss = valid_loss.detach().cpu().numpy()
costs.append(valid_loss)
Expand Down

0 comments on commit e759e6c

Please sign in to comment.