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
3 changes: 2 additions & 1 deletion chapter5/notebook/Association.ipynb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "c7dc31f1",
"metadata": {},
Expand Down Expand Up @@ -42,7 +43,7 @@
"outputs": [],
"source": [
"# 사용자 x 영화 행렬 형식으로 변환한다\n",
"user_movie_matrix = movielens_train.pivot(index='user_id', columns='movie_id', values='rating')\n",
"user_movie_matrix = movielens.train.pivot(index='user_id', columns='movie_id', values='rating')\n",
"\n",
"# 라이브러리를 사용하기 위해 4 이상의 평갓값은 1, 4 미만의 평갓값과 결손값은 0으로 한다\n",
"user_movie_matrix[user_movie_matrix < 4] = 0\n",
Expand Down