Skip to content

Commit

Permalink
fix lazy stats test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Oct 26, 2024
1 parent 75f5c58 commit 5644c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lenskit/tests/data/test_dataset_lazy.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_user_stats(ml_ratings: pd.DataFrame):
assert np.all(stats.index == ml_ds.users.index)

assert np.all(stats["count"] == ml_ratings["user"].value_counts().reindex(ml_ds.users))
assert np.all(stats["user_count"] == ml_ratings["user"].value_counts().reindex(ml_ds.users))
assert np.all(stats["item_count"] == ml_ratings["user"].value_counts().reindex(ml_ds.users))
assert np.all(stats["rating_count"] == ml_ratings["user"].value_counts().reindex(ml_ds.users))

assert stats["mean_rating"].values == approx(
Expand Down

0 comments on commit 5644c4a

Please sign in to comment.