-
-
Save amankharwal/f93379237071a7d41b61537c475f3513 to your computer and use it in GitHub Desktop.
This file contains 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
# reduce the dimensionality of the dataset | |
pca = PCA(n_components=2) | |
x_principal = pca.fit_transform(x_normal) | |
x_principal = pd.DataFrame(x_principal) | |
x_principal.columns = ['V1', 'V2'] | |
print(x_principal.head()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment