Skip to content

Commit

Permalink
Update ml10m.R
Browse files Browse the repository at this point in the history
  • Loading branch information
statwangz committed Sep 21, 2023
1 parent e110f31 commit ed6d082
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion data-raw/ml10m.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ed6d082

Please sign in to comment.