Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saimadhu-polamuri/c9e78f9d4da6fb3ce6aabf2c0cf6eb87 to your computer and use it in GitHub Desktop.
Save saimadhu-polamuri/c9e78f9d4da6fb3ce6aabf2c0cf6eb87 to your computer and use it in GitHub Desktop.
std = StandardScaler()
transformed = StandardScaler().fit_transform(a)
## Two PCA components
pca = convers_pca(no_of_components=2)
pca.fit(transformed)
print(pca.eigen_vectors)
print(pca.eigen_values)
print(pca.sorted_components)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment