예제 #1
0
파일: test.py 프로젝트: hanfeisun/bednmf
 def testNmfRun(self):
     self.factor = factorization(self.V, 4)
     self.estimate = dot(self.factor["basis"], self.factor["coef"])
     print self.estimate
     self.error = self.estimate - self.V
예제 #2
0
 def init_factorization(self, rank = 4):
     print "start factorization"
     self.factor = factorization(self.sparse, rank=rank)
     print "factorization finished"