Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
amar-iastate authored Aug 2, 2018
1 parent 761af8c commit 299b90d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pygcn/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ def train(epoch):
loss_val = F.nll_loss(output[idx_val], labels[idx_val])
acc_val = accuracy(output[idx_val], labels[idx_val])
print('Epoch: {:04d}'.format(epoch+1),
'loss_train: {:.4f}'.format(loss_train.data[0]),
'acc_train: {:.4f}'.format(acc_train.data[0]),
'loss_val: {:.4f}'.format(loss_val.data[0]),
'acc_val: {:.4f}'.format(acc_val.data[0]),
'loss_train: {:.4f}'.format(loss_train.item()),
'acc_train: {:.4f}'.format(acc_train.item()),
'loss_val: {:.4f}'.format(loss_val.item()),
'acc_val: {:.4f}'.format(acc_val.item()),
'time: {:.4f}s'.format(time.time() - t))


Expand Down

0 comments on commit 299b90d

Please sign in to comment.