Skip to content

Commit

Permalink
speed up large model test
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed May 10, 2024
1 parent 3bdb7f7 commit 5562980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_knn_item_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def test_ii_large_models(rng):
_log.info("checking a sample of neighborhoods")
items = algo_ub.item_index_.values
items = items[algo_ub.item_counts_.numpy() > 0]
for i in rng.choice(items, 100):
for i in rng.choice(items, 50):
ipos = algo_ub.item_index_.get_loc(i)
_log.debug("checking item %d at position %d", i, ipos)
assert ipos == algo_lim.item_index_.get_loc(i)
Expand Down

0 comments on commit 5562980

Please sign in to comment.