run_nmf.RdFits V \approx W H with W, H \ge 0 using Lee-Seung multiplicative
updates under the Frobenius loss.
run_nmf(V, rank, max_iter = 200L, tol = 1e-04, seed = NULL, eps = 1e-09)Numeric matrix, genes as rows and samples as columns; non-negative.
Integer factorization rank (number of latent programs).
Maximum number of multiplicative update iterations.
Stop when relative change in Frobenius error falls below this value.
Optional random seed passed to initialize_nmf().
Small constant for numerical stability in updates.
A list with W, H, error_history, and iterations.
path <- expression_matrix_path()
if (nzchar(path)) {
V <- load_expression_matrix(path)
fit <- run_nmf(V, rank = 3L, max_iter = 50L, seed = 42L)
fit$iterations
}
#> [1] 50