Skip to content

Commit

Permalink
update codes
Browse files Browse the repository at this point in the history
  • Loading branch information
WebGao committed Sep 25, 2024
1 parent 408b5dd commit 4c39b42
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 2 deletions.
96 changes: 96 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion MIRT/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def train():
running_loss = 0.0

# validate and save current model every epoch
rmse, auc = validate(net, epoch)
save_snapshot(net, './model/' + data + '/model_epoch' + str(epoch + 1))
validate(net, epoch)


def validate(model, epoch):
Expand Down
2 changes: 1 addition & 1 deletion TechCD/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def train():

# validate and save current model every epoch
save_snapshot(net, './model/' + data + '/model_epoch' + str(epoch + 1))
rmse, auc = validate(net, epoch)
validate(net, epoch)


def validate(net, epoch):
Expand Down

0 comments on commit 4c39b42

Please sign in to comment.