Hi there

I am trying to apply Non-negative matrix factorization using scikit-learn [ http://scikit-learn.org/stable/modules/generated/sklearn.decomposition.NMF.html ]. My input data is V

here is the code:


X = pickle.load(open('pickled_X.pk'))
nmf = NMF(n_components = 10,tol=0.1)
Xnmf = nmf.fit_transform(X)


After decomposition is done I am ably to access matrix W


W = Xnmf

How do I access coefficient matrix H ?

asked Sep 03 '13 at 06:02

Kamil%20cz's gravatar image

Kamil cz
1112

edited Sep 03 '13 at 06:03


One Answer:

I am pretty sure that you can find it in

nmf.components_

after you performed fit_transform()

Cheers, Gecko

answered Sep 15 '13 at 16:16

Daniel%20Paurat's gravatar image

Daniel Paurat
11

edited Sep 15 '13 at 16:17

Your answer
toggle preview

powered by OSQA

User submitted content is under Creative Commons: Attribution - Share Alike; Other things copyright (C) 2010, MetaOptimize LLC.