TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

Non-Negative Matrix Factorization (NMF) for Dimensionality Reduction in Image Data

9 min readMay 6, 2023

--

Original image by an_photos from Pixabay (Slightly edited by author)

I have already discussed different types of dimensionality reduction techniques in detail.

Principal Component Analysis (PCA), Factor Analysis (FA), Linear Discriminant Analysis (LDA), Autoencoders (AEs), and Kernel PCA are the most popular ones.

Non-Negative Matrix Factorization (NMF or NNMF) is also a linear dimensionality reduction technique that can be used to reduce the dimensionality of the feature matrix.

All dimensionality reduction techniques fall under the category of unsupervised machine learning in which we can reveal hidden patterns and important relationships in the data without requiring labels.

So, dimensionality reduction algorithms deal with unlabeled data. When training such an algorithm, the fit() method only needs the feature matrix, X as the input and it does not require the label column, y.

As its name implies, non-negative matrix factorization (NMF) needs the feature matrix to be non-negative.

Because of this non-negativity constraint, the usage of NMF is limited to data with non-negative values such as image data (pixel…

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Rukshan Pramoditha
Rukshan Pramoditha

Written by Rukshan Pramoditha

3,000,000+ Views | BSc in Stats (University of Colombo, Sri Lanka) | Top 50 Data Science, AI/ML Technical Writer on Medium

Responses (2)