fa_like: Create a Factor Analysis-like low rank matrix factorization...

Description Usage Arguments Examples

View source: R/object-fa-like.R

Description

A low rank matrix factorization of a matrix X is parameterized by X ~= X %*% B %*% t(Y). The object is "factor analysis-like" because the middle matrix in the decomposition is arbitrary rather than diagonal.

Usage

1
fa_like(Z, B, Y, subclasses = NULL, ...)

Arguments

Z

A matrix of embeddings for each observation.

B

A mixing matrix describing how observation embeddings and topics interact. Does not have to be diagonal!

Y

A matrix describing the compositions of various topics or factors.

subclasses

A character vector of subclasses. Optional, defaults to NULL.

...

Optional additional items to pass to the constructor.

Examples

1
2
3
s <- svd(as.matrix(trees))

fa_like(s$u, diag(s$d), s$v)

LRMF3 documentation built on Feb. 10, 2022, 1:09 a.m.