2012/7/24 jonathan edwards <[email protected]>:
> Hello,
> I'm trying to get _both_ the factor matrices from the nmf function but so
> far can only get hold of the second column matrix with
> "model.components_". I think I'm missing something....
> many thanks in advance

You can do:

nmf = NMF(n_components=10)
loadings = nmf.fit_transform(X)
components = nmf.components_

It would be better to extract fit_transform as a utility function akin
to fast_svd though IMHO.

-- 
Olivier
http://twitter.com/ogrisel - http://github.com/ogrisel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to