Skip to content

Commit

Permalink
update getting-started for dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jul 23, 2024
1 parent a18dc77 commit e9bb3ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/GettingStarted.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"outputs": [],
"source": [
"from lenskit.datasets import ML100K\n",
"from lenskit.data import from_interactions_df\n",
"from lenskit import batch, topn, util\n",
"from lenskit import crossfold as xf\n",
"from lenskit.algorithms import Recommender, als, knn\n",
Expand Down Expand Up @@ -216,7 +217,7 @@
"def eval(aname, algo, train, test):\n",
" fittable = util.clone(algo)\n",
" fittable = Recommender.adapt(fittable)\n",
" fittable.fit(train)\n",
" fittable.fit(from_interactions_df(train))\n",
" users = test.user.unique()\n",
" # now we run the recommender\n",
" recs = batch.recommend(fittable, users, 100)\n",
Expand Down

0 comments on commit e9bb3ea

Please sign in to comment.