Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
],
"source": [
"# split the data into training and testing sets (80% train, 20% test)\n",
"train_set, test_set = train_test_split(ratings_data, test_size=0.2)\n",
"train_set, test_set = train_test_split(ratings_data, test_size=0.2, random_state=42)\n",
"\n",
"# use SVD (Singular Value Decomposition) for collaborative filtering\n",
"svd = SVD(n_factors=100, biased=False) # we'll set biased to False so that predictions are of the form \"rating_prediction = user_vector dot item_vector\"\n",
Expand Down
Loading