opnmfR: opnmfR: A package for orthonormal projective non-negative...

Description Usage Arguments Value Examples

View source: R/opnmfR.R

Description

This package provides functions for opnmf factorization, initialization, and rank election using R and Rcpp code

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
opnmfR(
  X,
  r,
  W0 = NULL,
  max.iter = 50000,
  tol = 1e-05,
  memsave = TRUE,
  eps = 1e-16,
  use.gpu = FALSE,
  ...
)

Arguments

X

A matrix, rows are the number of features and columns are number of samples

r

A number, rank used for factorization.

W0

A string or matrix for initialization (default NULL)

max.iter

A number, number of iterations before stopping (default 50000)

tol

A number, convergence tolerance (default 1e-5)

memsave

A logical, if TRUE update rule is modified to better deal with high dimensional data (default TRUE)

eps

A number, (default 1e-16)

use.gpu

A logical, conduct factorizatio on GPUs using gpuR (default FALSE)

Value

A list containing the approximation matrices W and H, of input matrix X; the interation number at which a solution was found; the reconstruction error

Examples

1
 result <- opnmfR()

kaurao/opnmfR documentation built on March 12, 2021, 4:15 a.m.