Data Science, Machine Learning, Pattern Recognition, Pca Analysis, Data Reduction.
PCA pca = PCA(n_components=3) pca.fit(scaled_data) PCA(n_components=3) ### Dataset with reduced dimensionality x_pca = pca.transform(scaled_data) print(scaled_data.shape) ### original data shape print(x_pca.shape) ### new data shape ### Output ### (569, 30) ### (569, 3) Plot this data: fig, ax =