Skip to content

Instantly share code, notes, and snippets.

@RyotaBannai
Created December 19, 2018 16:46
Show Gist options
  • Select an option

  • Save RyotaBannai/ef5d9806d9470bcaaca6661dae3694a5 to your computer and use it in GitHub Desktop.

Select an option

Save RyotaBannai/ef5d9806d9470bcaaca6661dae3694a5 to your computer and use it in GitHub Desktop.
from sklearn.decomposition import PCA
pca = PCA(n_components=2)
pca.fit(X) # Apply PCA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment