Dimensionality Reduction, Pca, Machine Learning, Lda, Curse Of Dimensionality.
color='c', marker='x') plt.xlabel("Number of principal components") plt.ylabel("Cummulative variance ratio") plt.title("Finding a ideal number of principal components") plt.grid(True) pca = PCA(n_components=2) X_reduced = pca.fit_transform(X) X_reduced Method 2 Instead of finding the ideal number