Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Встановіть правильний порядок PCA plot in 2D ?
X_pca = pca.fit_transform(X)
plt.figure(figsize=(8,6))
plt.scatter(principal_df.iloc[:,0], principal_df.iloc[:,1], s=40)
principal_df = pd.DataFrame(data = X_pca, columns = ['PC1', 'PC2'])
plt.title('PCA plot in 2D')plt.xlabel('PC1')plt.ylabel('PC2')
plt.title('PCA plot in 2D')
plt.xlabel('PC1')
plt.ylabel('PC2')
pca = PCA(n_components=2)
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!