Skip to content

Commit

Permalink
fix imports for records doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jul 31, 2024
1 parent e79fdae commit d84a1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lenskit/lenskit/splitting/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def sample_records(
We can loop over a sequence of train-test pairs::
>>> from lenskit.data.movielens import load_movielens_df
>>> from lenskit.data import load_movielens
>>> movielens = load_movielens('data/ml-latest-small')
>>> for train, test in sample_records(movielens, 1000, repeats=5):
... print(sum(len(il) for il in test.values()))
Expand Down

0 comments on commit d84a1f0

Please sign in to comment.