Skip to content

Commit

Permalink
update output display
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonymized committed Mar 23, 2019
1 parent e9bf240 commit 88aa788
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified src/__pycache__/utils.cpython-35.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def apply_model(dataCenter, ds, graphSage, classification, unsupervised_loss, b_
logists = classification(embs_batch)
loss = -torch.sum(logists[range(logists.size(0)), labels_batch], 0)
loss /= len(nodes_batch)
print('Step {}, Loss: {:.4f}, Dealed Nodes [{}/{}] '.format(index, loss.item(), len(visited_nodes), len(train_nodes)))
print('Step [{}/{}], Loss: {:.4f}, Dealed Nodes [{}/{}] '.format(index, batches, loss.item(), len(visited_nodes), len(train_nodes)))
loss.backward()
for model in models:
nn.utils.clip_grad_norm_(model.parameters(), 5)
Expand Down

0 comments on commit 88aa788

Please sign in to comment.