Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Jan 14, 2025
1 parent 302e8c6 commit 4cc4411
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion torch_geometric/metrics/link_pred.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ class LinkPredMetricCollection(torch.nn.ModuleDict):
])
metrics.update(pred_index_mat, edge_label_index)
print(metrics.compute())
out = metrics.compute()
metrics.reset()
print(out)
>>> {'LinkPredMAP@10': tensor(0.375),
... 'LinkPredPrecision@100': tensor(0.127),
... 'LinkPredRecall@50': tensor(0.483)}
Expand Down

0 comments on commit 4cc4411

Please sign in to comment.