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 db461db commit e5f686b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data-raw/ml10m.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5f686b

Please sign in to comment.