Learn R Programming

Collective Matrix Factorization

Collective matrix factorization (CMF) finds joint low-rank representations for a collection of matrices with shared row or column entities. This code learns a variational Bayesian approximation for CMF, supporting multiple likelihood potentials and missing data, while identifying both factors shared by multiple matrices and factors private for each matrix.

For further details on the method see Klami et al. (2014). The package can also be used to learn Bayesian canonical correlation analysis (CCA) and group factor analysis (GFA) models, both of which are special cases of CMF. This is likely to be useful for people looking for CCA and GFA solutions supporting missing data and non-Gaussian likelihoods.

See Klami et al. (2013) and Virtanen et al. (2012) for details on Bayesian CCA and GFA, respectively.

  • Original package authors: Arto Klami and Lauri Väre
  • Maintainer: Felix Held

Install development version

To install the development version from GitHub, run

devtools::install_github("cyianor/CMF")

New features will be available here first.

Install CRAN version

To install the official CRAN version it is enough to run

install.packages("CMF")

Copy Link

Version

Install

install.packages('CMF')

Monthly Downloads

221

Version

1.0.3

License

GPL (>= 2)

Maintainer

Felix Held

Last Published

August 9th, 2022

Functions in CMF (1.0.3)

getCMFopts

Default options for CMF
p_gradUsparseWrapper

Internal function for computing the gradients
CMF-package

Collective Matrix Factorization (CMF)
predictCMF

Predict with CMF
triplets_to_matrix

Conversion from triplet/coordinate format to matrix
CMF

Collective Matrix Factorization
p_check_sparsity

Internal function for checking whether the input is in the right format
matrix_to_triplets

Conversion from matrix to coordinate/triplet format