Weight for item or user (based on `is_item`) for all in `arr`

get_weights(object, arr, is_item = TRUE, convert = FALSE)

Arguments

object

extract weights

arr

R data frame

is_item

logical, is item

convert

to R matrix

Value

tensor

Examples


if (FALSE) {

movie_w = learn %>% get_weights(top_movies, is_item = TRUE, convert = TRUE)

}