Skip to content

Commit

Permalink
fix learn it
Browse files Browse the repository at this point in the history
  • Loading branch information
lipanpan03 authored and tugraph committed Dec 26, 2023
1 parent 9a9cc55 commit 99dd1b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion learn/examples/train_full_mag.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ def train(

pbar.close()
loss = total_loss / num_train

if epoch == 4 and loss < 5:
print("The loss value is less than 5")
result = test(g, model, node_embed, labels, device, split_idx)
logger.add_result(run, result)
train_acc, valid_acc, test_acc = result
Expand Down

0 comments on commit 99dd1b9

Please sign in to comment.