Description Usage Arguments Details Value See Also Examples
This can only deal with factors as covariate. It is important to make sure your covariates are all factors (not indicators), or else it will not work correctly
1 |
formula |
the formula with the response on the left hand side and the covariates on the right hand side |
data |
data.frame |
... |
optional, currently unused, arguments |
If your data is sparse, sp_matrix_libFM
is about 100 times faster than
matrix_libFM
. I recommend using the sparse version over the standard version
whenever possible. If your data consists of factor variables with a lot of levels,
model_frame_libFM
is faster than sp_matrix_libFM
.
a character vector with one value per observation
1 2 3 4 | data(movie_lens)
movie_lens_libFM = model_frame_libFM(Rating ~ User + Movie, movie_lens)
tail(movie_lens_libFM, 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.