get_weights: Get weights

Description Usage Arguments Value Examples

View source: R/collab.R

Description

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

Usage

1
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

1
2
3
4
5
6
## Not run: 

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


## End(Not run)

fastai documentation built on July 28, 2021, 5:06 p.m.