Created
November 5, 2022 14:22
-
-
Save rdisipio/f7b80136b6354e2e2ee43888ea69c1b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.decomposition import PCA | |
pca = PCA(n_components=5) | |
X_pca = pca.fit_transform(X) | |
print("Relative importance (fraction of unity):") | |
print(pca.explained_variance_ratio_) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment