bnmf | R Documentation |
Perform variational Bayes NMF and store factor matrices in object
bnmf( object, ranks = 2:10, nrun = 1, verbose = 2, progress.bar = TRUE, initializer = "random", Itmax = 10000, hyper.update = rep(TRUE, 4), gamma.a = 1, gamma.b = 1, Tol = 1e-05, hyper.update.n0 = 10, hyper.update.dn = 1, fudge = NULL, kstar = "kmax", useC = FALSE, unif.stop = TRUE, sindex = NULL )
object |
|
ranks |
Rank for factorization; can be a vector of multiple values. |
nrun |
No. of runs with different initial guesses. |
progress.bar |
Display progress bar with |
initializer |
If |
Itmax |
Maximum no. of iteration. |
hyper.update |
Vector of four logicals, each indcating whether
hyperparameters |
gamma.a |
Gamma distribution shape parameter. |
gamma.b |
Gamma distribution mean. These two parameters are used for
fixed hyperparameters with |
Tol |
Tolerance for terminating iteration. |
hyper.update.n0 |
Initial number of steps in which hyperparameters are fixed. |
hyper.update.dn |
Step intervals for hyperparameter updates. |
fudge |
Small positive number used as lower bound for factor matrix
elements to avoid singularity. If |
unif.stop |
Terminate if any of columns in basis matrix is uniform. |
The main input is the tempoSig
object with count matrix.
This function performs non-negative factorization using Bayesian algorithm
and gamma priors. Slots basis
, coeff
, and ranks
are filled.
When run with multiple values of ranks
, factorization is
repeated for each rank and the slot measure
contains
log evidence and optimal hyperparameters for each rank.
With nrun > 1
, the solution
with the maximum log evidence is stored for a given rank.
Object of class scNMFSet
with factorization slots filled.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.