Skip to content

Commit

Permalink
Fix python evaluation
Browse files Browse the repository at this point in the history
It turns out I ran incorrect tests and the evaluation module was not really working
  • Loading branch information
daviddavo committed Jun 26, 2024
1 parent 0a1b98f commit 66ace3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recommenders/evaluation/python_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,9 @@ def merge_ranking_true_pred(

# count the number of hits vs actual relevant items per user
df_hit_count = pd.merge(
df_hit.groupby(col_user, as_index=False)[col_user].agg({"hit": "count"}),
df_hit.groupby(col_user, as_index=False)[col_user].agg(hit="count"),
rating_true_common.groupby(col_user, as_index=False)[col_user].agg(
{"actual": "count"}
actual="count",
),
on=col_user,
)
Expand Down

0 comments on commit 66ace3e

Please sign in to comment.