From ed6d08288b71069171dfa84c7f748bf4b0acca9f Mon Sep 17 00:00:00 2001 From: WANG Zhiwei <48282751+statwangz@users.noreply.github.com> Date: Thu, 21 Sep 2023 23:09:32 +0800 Subject: [PATCH] Update ml10m.R --- data-raw/ml10m.R | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/data-raw/ml10m.R b/data-raw/ml10m.R index 23f26d6..4187a24 100644 --- a/data-raw/ml10m.R +++ b/data-raw/ml10m.R @@ -39,6 +39,12 @@ rating_matrix <- Matrix::sparseMatrix( ) # head(rating_matrix) +# # Check missing entries +# sum(colSums(rating_matrix) == 0) +# which(colSums(rating_matrix) == 0) +# sum(rowSums(rating_matrix) == 0) +# which(rowSums(rating_matrix) == 0) + ## Movies file description # MovieID::Title::Genres @@ -74,7 +80,7 @@ colnames(movie_genre_matrix) <- all_genres # sum(colSums(movie_genre_matrix) == 0) # which(colSums(movie_genre_matrix) == 0) # sum(rowSums(movie_genre_matrix) == 0) -# which((rowSums(movie_genre_matrix) == 0)) +# which(rowSums(movie_genre_matrix) == 0) ml10m <- list( rating = rating_matrix,