get_weights: Get weights

View source: R/collab.R

get_weightsR 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)


fastai documentation built on March 31, 2023, 11:41 p.m.