autofaiss.metrics package
Submodules
autofaiss.metrics.benchmark module
autofaiss.metrics.recalls module
function to compute different kind of recalls
- autofaiss.metrics.recalls.one_recall_at_r(query, ground_truth, other_index, r_max=40, eval_item_ids=None)[source]
Compute an 1-recall@R array for each R in range [1, r_max]
- Return type:
- autofaiss.metrics.recalls.one_recall_at_r_single(query, ground_truth, other_index, r_max=40, eval_item_ids=None)[source]
Compute an 1-recall@R array for each R in range [1, r_max] for a single query.
autofaiss.metrics.reconstruction module
function to compute the reconstruction error