Skip to content

Commit

Permalink
fix trace logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Dec 27, 2024
1 parent f47a551 commit 8a07e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lenskit/lenskit/knn/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def __call__(self, query: QueryInput, items: ItemList) -> ItemList:
ri_mask = ri_nums >= 0
ri_valid_nums = ri_nums[ri_mask]
n_valid = len(ri_valid_nums)
trace.debug("user %s: %d of %d rated items in model", query.user_id, n_valid, len(ratings))
trace(log, "%d of %d rated items in model", n_valid, len(ratings))

if self.feedback == "explicit":
ri_vals = ratings.field("rating", "numpy")
Expand Down

0 comments on commit 8a07e3c

Please sign in to comment.