I’m looking for a way to measure accuracy of an edge classification model (after this tutorial. How could I modify this snippet from node classification model to work with the edge classifier? Right now it shows 0.0 accuracy in every epoch.
train_acc = (pred[train_mask] == labels[train_mask]).float().mean()
val_acc = (pred[val_mask] == labels[val_mask]).float().mean()
test_acc = (pred[test_mask] == labels[test_mask]).float().mean()
Additionally, what would be the best way of splitting graph edges into test/train/val?