> ## Documentation Index
> Fetch the complete documentation index at: https://kumo.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Link Prediction

> Suggest Edits

For link prediction tasks, Kumo provides F1\@K, MAP\@K, Precision\@K, Recall\@K (for K = 1, 10, and 100), as well as the following:

**Normalized Discounted Cumulative Gain (NDCG)** is calculated by:

<img src="https://mintcdn.com/kumoai/ZKZPoQzuJb9d_Mqc/images/Screenshot2025-06-27at10.41.36AM.png?fit=max&auto=format&n=ZKZPoQzuJb9d_Mqc&q=85&s=1aaea015c8fef10199dd75e3bb9a44a0" alt="Screenshot2025 06 27at10 41 36AM Pn" title="Screenshot2025 06 27at10 41 36AM Pn" style={{ width:"58%" }} width="714" height="138" data-path="images/Screenshot2025-06-27at10.41.36AM.png" />

where **\_reli \_**is the graded relevance of the result at position ***i***.

**Mean Average Precision (MAP)** is calculated by:

<img src="https://mintcdn.com/kumoai/ZKZPoQzuJb9d_Mqc/images/Screenshot2025-06-27at10.41.57AM.png?fit=max&auto=format&n=ZKZPoQzuJb9d_Mqc&q=85&s=0fa7be4f6fadabc105550d0281f935ad" alt="Screenshot2025 06 27at10 41 57AM Pn" title="Screenshot2025 06 27at10 41 57AM Pn" style={{ width:"30%" }} width="350" height="176" data-path="images/Screenshot2025-06-27at10.41.57AM.png" />

where MAP is calculated by finding the average precision (AP) for each query, and then averaging over the number of queries.

**Mean Reciprocal Rank (MRR)** is calculated by:

<img src="https://mintcdn.com/kumoai/ZKZPoQzuJb9d_Mqc/images/Screenshot2025-06-27at10.42.26AM.png?fit=max&auto=format&n=ZKZPoQzuJb9d_Mqc&q=85&s=67568d0613ec6b9d6aba905ecbd4a23f" alt="Screenshot2025 06 27at10 42 26AM Pn" title="Screenshot2025 06 27at10 42 26AM Pn" style={{ width:"35%" }} width="346" height="130" data-path="images/Screenshot2025-06-27at10.42.26AM.png" />

where **\_ranki \_**refers to the rank position of the *first* relevant item for the *i*-th query.
