项目作者: eesungkim

项目描述 :
Non-negative Matrix Factorization (NMF) Tensorflow Implementation
高级语言: Python
项目地址: git://github.com/eesungkim/NMF-Tensorflow.git
创建时间: 2018-03-30T11:57:50Z
项目社区:https://github.com/eesungkim/NMF-Tensorflow

开源协议:

下载


NMF-Tensorflow

Non-negative Matrix Factorization (NMF) Tensorflow Implementation.

Examples

  1. >>> import numpy as np
  2. >>> from nmf import NMF
  3. >>> V = np.array([[1, 1], [2, 1], [3, 1.2], [4, 1], [5, 0.8], [6, 1]])
  4. >>> model = NMF(max_iter=200,learning_rate=0.01,display_step=10, optimizer='mu')
  5. >>> W, H = model.fit_transform(V, r_components=2, initW=False, givenW=0)
  6. >>> print(V)
  7. >>> print(model.inverse_transform(W, H))

Optimization

  • Gradient Descent with Multiplicative Update Rule
  • Projected Gradient

TODO:

  • Sparse NMF
  • Discriminant NMF