opt_esvd.default | R Documentation |
Optimize eSVD for matrices or sparse matrices.
## Default S3 method:
opt_esvd(
input_obj,
x_init,
y_init,
z_init = NULL,
covariates = NULL,
family = "poisson",
l2pen = 0.1,
library_multipler = rep(1, nrow(input_obj)),
max_iter = 100,
nuisance_vec = rep(NA, ncol(input_obj)),
offset_variables = NULL,
tol = 1e-06,
verbose = 0,
...
)
input_obj |
Dataset (either |
x_init |
Initial matrix of the cells' latent vectors that is |
y_init |
Initial matrix of the genes' latent vectors that is |
z_init |
Initial matrix of the genes' coefficient vectors that is |
covariates |
|
family |
String among |
l2pen |
Small positive number for the amount of penalization for both the cells' and the genes' latent vectors as well as the coefficients. |
library_multipler |
Vector of positive numerics of length |
max_iter |
Positive integer for number of iterations. |
nuisance_vec |
Vector of non-negative numerics (or |
offset_variables |
A vector of strings depicting which column names in |
tol |
Small positive number to differentiate between zero and non-zero. |
verbose |
Integer |
... |
Additional parameters |
a list
with elements x_mat
, y_mat
,
z_mat
, library_multiplier
, loss
, nuisance_vec
and param
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.