Learn R Programming

cmfrec (version 3.5.1-3)

Collective Matrix Factorization for Recommender Systems

Description

Collective matrix factorization (a.k.a. multi-view or multi-way factorization, Singh, Gordon, (2008) ) tries to approximate a (potentially very sparse or having many missing values) matrix 'X' as the product of two low-dimensional matrices, optionally aided with secondary information matrices about rows and/or columns of 'X', which are also factorized using the same latent components. The intended usage is for recommender systems, dimensionality reduction, and missing value imputation. Implements extensions of the original model (Cortes, (2018) ) and can produce different factorizations such as the weighted 'implicit-feedback' model (Hu, Koren, Volinsky, (2008) ), the 'weighted-lambda-regularization' model, (Zhou, Wilkinson, Schreiber, Pan, (2008) ), or the enhanced model with 'implicit features' (Rendle, Zhang, Koren, (2019) ), with or without side information. Can use gradient-based procedures or alternating-least squares procedures (Koren, Bell, Volinsky, (2009) ), with either a Cholesky solver, a faster conjugate gradient solver (Takacs, Pilaszy, Tikk, (2011) ), or a non-negative coordinate descent solver (Franc, Hlavac, Navara, (2005) ), providing efficient methods for sparse and dense data, and mixtures thereof. Supports L1 and L2 regularization in the main models, offers alternative most-popular and content-based models, and implements functionality for cold-start recommendations and imputation of 2D data.

Copy Link

Version

Install

install.packages('cmfrec')

Monthly Downloads

277

Version

3.5.1-3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Cortes

Last Published

December 9th, 2023

Functions in cmfrec (3.5.1-3)

cmfrec

cmfrec package
item_factors

Determine latent factors for a new item
predict.cmfrec

Predict entries in the factorized `X` matrix
factors_single

Calculate latent factors for a new user
factors

Calculate latent factors on new data
drop.nonessential.matrices

Drop matrices that are not used for prediction
fit_models

Matrix Factorization Models
imputeX

Impute missing entries in `X` data
precompute.for.predictions

Precompute matrices to use for predictions
CMF.from.model.matrices

Create a CMF model object from fitted matrices
print.cmfrec

Get information about factorization model
summary.cmfrec

Get information about factorization model
predict_new

Predict entries in new `X` data
topN

Calulate top-N predictions for a new or existing user
swap.users.and.items

Swap users and items in the model
predict_new_items

Predict new columns of `X` given item attributes