Learn R Programming

casimir (version 0.3.3)

lrap_score: Helper function for document-wise computation of ranked retrieval scores

Description

Helper function for document-wise computation of ranked retrieval scores DCG, NDCG and LRAP. Implemented as in Annif https://github.com/NatLibFi/Annif/blob/master/annif/eval.py. Reference implementation for Label Ranking Average Precision.

Usage

lrap_score(gold_vs_pred)

Value

The numeric value of LRAP.

Arguments

gold_vs_pred

A data.frame as generated by create_comparison.