Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get the first principle component of pca

# Create a PCA 
model = PCA()

# Fit model to points
model.fit(data)

# Get the first principal component
pc_1 = model.components_[0,:]
 
PREVIOUS NEXT
Tagged: #principle #component #pca
ADD COMMENT
Topic
Name
6+9 =