January 2018
Beginner to intermediate
316 pages
7h 14m
English
As usual, scikit-learn saves the day by implementing this procedure in an easy to use transformer so that we don't have to go through that manual process each time we wish to use this powerful process:
# scikit-learn's version of PCAfrom sklearn.decomposition import PCA
# Like any other sklearn module, we first instantiate the classpca = PCA(n_components=2)
# fit the PCA to our datapca.fit(iris_X)
Read now
Unlock full access