LinkPredMRR
¶
LinkPredMRR(k: int)
Bases: LinkPredMetric
MRR @ \(k\) (Mean Reciprocal Rank): the reciprocal rank of the first relevant item of the top-\(k\), or zero.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
k
|
int
|
The number of top-\(k\) predictions to evaluate against. |
required |
Source code in mlx_graphs/metrics/link_pred.py
from mlx_graphs.metrics import LinkPredMRR · mlx_graphs/metrics/link_pred.py