From 58462aa7431dd4eac0371afa3cfd6ff2461d8985 Mon Sep 17 00:00:00 2001 From: hscrown <127284395+hscrown@users.noreply.github.com> Date: Wed, 24 Apr 2024 16:14:39 +0900 Subject: [PATCH] Update 004. recommender system basic with Python - 3 Matrix Factorization.ipynb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit df.as_matrix()는 더이상 사용되지않습니다 https://stackoverflow.com/questions/61102281/dataframe-object-has-no-attribute-as-matrix --- ...nder system basic with Python - 3 Matrix Factorization.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/004. recommender system basic with Python - 3 Matrix Factorization.ipynb b/004. recommender system basic with Python - 3 Matrix Factorization.ipynb index 8f6cecf..60243a6 100644 --- a/004. recommender system basic with Python - 3 Matrix Factorization.ipynb +++ b/004. recommender system basic with Python - 3 Matrix Factorization.ipynb @@ -1464,7 +1464,7 @@ "outputs": [], "source": [ "# matrix는 pivot_table 값을 numpy matrix로 만든 것 \n", - "matrix = df_user_movie_ratings.as_matrix()\n", + "matrix = df_user_movie_ratings.values\n", "\n", "# user_ratings_mean은 사용자의 평균 평점 \n", "user_ratings_mean = np.mean(matrix, axis = 1)\n",