Scikit-learn: LSA (implicit semantic analysis) via non-negative matrix factorization (NMF or NNMF)

Source: Internet
Author: User


I've written two articles before, namely

1) A review of matrix decomposition: scikit-learn:2.5. Matrix factor decomposition problem

2) A brief introduction to TRUNCATEDSVD : Scikit-learn: Implementing LSA via TRUNCATEDSVD (implicit semantic analysis)

Today, the discovery of NMF is also a very good and practical model, simply introduced, it also belongs to the scikit-learn:2.5. Matrix factor decomposition is part of the problem.


The NMF is another method of compression, provided the data matrix is assumed to be non-negative. In the case where the data matrix does not contain negative values,the NMF can replace the PCA and his variants (NMFcan be plugged in instead ofPCAor its variants, in the cases where the data matrix is does not contain negative values. By decomposing X into W and H, he optimizes the following formula:


This norm is a obvious extension of the Euclidean norm to matrices. (Other optimization objectives has been suggested in the NMF literature, in particular Kullback-leibler divergence, but t Hese is not currently implemented.)



Work, to be continued ....





Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Scikit-learn: LSA (implicit semantic analysis) via non-negative matrix factorization (NMF or NNMF)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.