This study explores the efficacy of Non-Negative Matrix Factorization (NMF) for feature selection in high-dimensional cancer data from DNA microarray and methylation datasets, achieving a classification accuracy of 98%. It compares NMF with other dimensionality reduction techniques, particularly Principal Component Analysis (PCA), and evaluates multiple classifiers to determine optimal performance. The findings suggest that NMF effectively reduces dimensionality while retaining critical information, thereby enhancing cancer prediction models.