Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Chapter6/Collaborative Filtering.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1927,7 +1927,7 @@
],
"source": [
"#Import the required classes and methods from the surprise library\n",
"from surprise import Reader, Dataset, KNNBasic, evaluate\n",
"from surprise import Reader, Dataset, KNNBasic, accuracy\n",
"\n",
"#Define a Reader object\n",
"#The Reader object helps in parsing the file or dataframe containing ratings\n",
Expand All @@ -1940,7 +1940,7 @@
"knn = KNNBasic()\n",
"\n",
"#Evaluate the performance in terms of RMSE\n",
"evaluate(knn, data, measures=['RMSE'])"
"accuracy(knn, data, measures=['RMSE'])"
]
},
{
Expand Down