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 Jan 30, 2021
1 parent c9295ff commit 65ad4e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dsm/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ def train_dsm(model,

if (costs[-1] >= oldcost) is True:
if patience == 2:
maxm = np.argmax(costs)
model.load_state_dict(dics[maxm])
minm = np.argmin(costs)
model.load_state_dict(dics[minm])

del dics
gc.collect()
Expand Down

0 comments on commit 65ad4e2

Please sign in to comment.