Skip to content

Commit

Permalink
fix stray test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jan 21, 2025
1 parent 56504c6 commit 4a8d383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lenskit/tests/models/test_als_explicit.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def test_als_train_large(ml_ratings, ml_ds: Dataset):
assert len(algo.items_) == ml_ratings["item_id"].nunique()
assert len(algo.users_) == ml_ratings["user_id"].nunique()

ratings = ml_ds.interaction_matrix(format="pandas", field="all")
ratings = ml_ds.interaction_matrix(format="pandas")
gmean = ratings["rating"].mean()

istats = ml_ds.item_stats()
Expand Down
2 changes: 1 addition & 1 deletion lenskit/tests/models/test_knn_item_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_ii_simple_implicit_predict():
history = UserTrainingHistoryLookup()
history.train(simple_ds)
algo = ItemKNNScorer(k=30, feedback="implicit")
algo.train(from_interactions_df(simple_ratings.loc[:, ["user", "item"]]))
algo.train(from_interactions_df(simple_ratings.loc[:, ["user_id", "item_id"]]))

q = history(3)
res = algo(q, ItemList([6]))
Expand Down

0 comments on commit 4a8d383

Please sign in to comment.