LinkPredRecall
¶
Bases: LinkPredMetric
Recall @ \(k\): the proportion of the relevant items that appear in the top-\(k\) recommendations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
k
|
int
|
The number of top-\(k\) predictions to evaluate against. |
required |
weighted
|
bool
|
Whether to weight the items by |
False
|
Source code in mlx_graphs/metrics/link_pred.py
from mlx_graphs.metrics import LinkPredRecall · mlx_graphs/metrics/link_pred.py