get_weights {fastai} | R Documentation |
Get weights
Description
Weight for item or user (based on 'is_item') for all in 'arr'
Usage
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
## Not run:
movie_w = learn %>% get_weights(top_movies, is_item = TRUE, convert = TRUE)
## End(Not run)
[Package fastai version 2.2.2 Index]