| FindNumFactors | R Documentation | 
Adapted from Frigyesi et al, 2008. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2623306/
FindNumFactors(
  A,
  k.range = seq(2, 12, 2),
  n.cores = 1,
  do.plot = T,
  seed = NULL,
  loss = "mse",
  max.iter = 250
)
A | 
 Input data matrix  | 
k.range | 
 Range of NMF factors to fit over  | 
n.cores | 
 Number of threads  | 
do.plot | 
 Whether to plot the reconstruction error  | 
seed | 
 Random seed for randomizing matrix  | 
loss | 
 Loss function to use for NMF  | 
max.iter | 
 Maximum iterations for NMF run  | 
Reconstruction error at each number of NMF factors specified in k.range
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.