Skip to content

Instantly share code, notes, and snippets.

@infinite-Joy
Created August 5, 2017 06:38
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 infinite-Joy/9aa9cbee662abe1af84631b22c210750 to your computer and use it in GitHub Desktop.
Save infinite-Joy/9aa9cbee662abe1af84631b22c210750 to your computer and use it in GitHub Desktop.
from sklearn.decomposition import PCA as productionPCA
prod_pca = productionPCA(n_components=2)
Y_prod = prod_pca.fit_transform(X_std)
print(Y_prod[:2])
print(Y[:2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment