transfer_solve_subproblem: Solve subproblems via coordinate descent, given the parameter...

Description Usage Arguments Value

View source: R/data_transfer.R

Description

Solve the subproblem given which parameter set to update. For each subproblem, the exact solution is obtained

Usage

1
2
3
4
5
6
7
8
9
transfer_solve_subproblem(
  params.to.update = c("lambda", "b", "H"),
  X,
  W,
  H,
  b,
  lambd,
  verbose = T
)

Arguments

params.to.update

a characteristic scalar, choice of (lambda','b','H'), specifying which set of parameters to update

X

An ncells-by-ngenes gene expression matrix

W

An ngenes-by-r reference low dimensional factor matrix

H

A factor loading matrix of size ncells-by-r

b

A numeric shift vector of size p (ngenes).

lambd

A numeric scaling vector of size p (ngenes)

verbose

boolean scalar, whether to show extensive program logs (default TRUE)

Value

a list containing updated parameters: H, lambda, b


pengminshi/cFIT documentation built on July 11, 2021, 11:12 p.m.