Initialization of matrix factorization (stnmf.init
)
Collection of functions that offer strategies for initialization of matrix factorization.
Initialization largely contributes to convergence time and the solution that is found [1] [2].
|
Initialize feature matrix with a variation of non-negative singular value decomposition with low-rank correction (NNSVD-LRC) |
|
Initialize feature matrix by random sampling |
Notes
The functions provided can be called directly by the matrix factorization classes by passing their name as the argument w0.
Examples
The code below is equivalent.
>>> w = stnmf.init.nnsvdlrc(v, r=20)
>>> stnmf.mf.SparseSemiNMF(v, r=20, w0=w)
>>> stnmf.mf.SparseSemiNMF(v, r=20, w0='nnsvdlrc')
References