Nonnegative Matrix Factorization
Nonnegative Matrix Factorization
Abstract—This project offers a comprehensive exploration of C. Display Sample Images from the CBCL Face Dataset:
the NMF algorithm, showcasing its effectiveness in factorizing
data and providing valuable insights into the structure of the Pick a subset of the dataset’s face pictures. Display the
CBCL face dataset. By exploring different aspects of NMF, selected example pictures using the image function to facilitate
including initialization and visualization of the basis images, the visualisation.
project aims to enhance understanding and utilization of this
powerful matrix factorization technique
Index Terms—NMF algorithm, CBCL face dataset D. Evaluate NMF Performance at Different Ranks:
A. nmf function
• The function nmf accepts the following input arguments: – The imagesc function is used to construct a figure
X, a data matrix with each row representing a vectorized and display two sample pictures. Using the reshape
image; r, the rank of the factorization; maxit, the number function, the pictures are transformed from their
of iterations to perform; es, the stopping criterion; V, vectorized form to a 19x19 matrix.
an optional initial estimate for the matrix V; and W, an
optional initial estimate for the matrix W. The estimated
matrices V and W are returned.
Matlab code