This repository contains a R package for performing Nonnegative Matrix Factorization algorithms. This R code is translated from MATLAB code in the Nonnegative Matrix Factorization book (N. Gillis, 2020).
To install the gillis.nmf
package first you need to install devtools:
install.packages("devtools")
library(devtools)
install_github("swanjin/gillis.nmf")
One of the functions in the gillis.nmf
package is spa. To get minimal help:
library(gillis.nmf)
?spa
spa(matrix(1:16,4),2,c('normalize'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.