From e5f686b86aa126d7deb96b0788ad0382b234933e Mon Sep 17 00:00:00 2001 From: WANG Zhiwei <48282751+statwangz@users.noreply.github.com> Date: Thu, 21 Sep 2023 17:39:44 +0800 Subject: [PATCH] Update ml10m.R --- data-raw/ml10m.R | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data-raw/ml10m.R b/data-raw/ml10m.R index 1db3350..23f26d6 100644 --- a/data-raw/ml10m.R +++ b/data-raw/ml10m.R @@ -70,6 +70,12 @@ movie_genre_matrix <- t(sapply( )) colnames(movie_genre_matrix) <- all_genres +# # Check missing entries +# sum(colSums(movie_genre_matrix) == 0) +# which(colSums(movie_genre_matrix) == 0) +# sum(rowSums(movie_genre_matrix) == 0) +# which((rowSums(movie_genre_matrix) == 0)) + ml10m <- list( rating = rating_matrix, genre = movie_genre_matrix