recsys_metrics_polars.hit_at_k#

Functions

compute_hit_at_k(joined_true_with_recs, k)

Compute hit at k

recsys_metrics_polars.hit_at_k.compute_hit_at_k(joined_true_with_recs, k)[source]#

Compute hit at k

Parameters:
  • joined_true_with_recs (DataFrame) – _description_

  • k (int) – _description_

Returns:

_description_