Skip to content

NMF(Non-Negative Matrix Factorization) written on python.

Notifications You must be signed in to change notification settings

nashibao/nmf_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nmf_py

(Gaussian)NMF(Non-Negative Matrix Factorization) implementation on python. This code is designed to handle large sparse matrix.

usage.

nmf = NMF()
// random sparse matrix
A = nmf.rand_sparse_matrix(100000, 1000, 0.01)
nmf.setup(A, k=10)
nmf.run(iter_num=100)
// hard clustering
nmf.clusters()

performance

spec

  • macbook pro retina 15inch
  • mac 10.8.2
  • 2.7GHz corei7
  • 16GB memory
  • scipy superpack

setup

  • sparse matrix size: 1000000 x 10000
  • density: 0.005
  • hidden variable num: 10
  • iter_num: 100

-> 147.484 sec = 2.3 min

About

NMF(Non-Negative Matrix Factorization) written on python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages