Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

decorrelation of data using PCA

# Import PCA
from sklearn.decomposition import PCA

# Create PCA instance: model
model = PCA()

# Apply the fit_transform method of model to grains: pca_features
pca_features = model.fit_transform(data)
Source by campus.datacamp.com #
 
PREVIOUS NEXT
Tagged: #decorrelation #data #PCA
ADD COMMENT
Topic
Name
8+2 =