Search
 
SCRIPT & CODE EXAMPLE
 

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,:]
Comment

PREVIOUS NEXT
Code Example
Python :: merging results from model.predict() prediction with original pandas dataframe 
Python :: list foreach pyhton 
Python :: ring for loop 
Python :: ring Insert Items in list 
Python :: ring print part of the content of a binary file 
Python :: ring Using This in the class region as Self 
Python :: negative max in python 
Python :: word cloud mape python 
Python :: python run unix command 
Python :: open urls using python grepper 
Python :: All objects and constants needed to use the ldap3 library can be imported from the ldap3 namespace 
Python :: Uso de lambda 
Python :: django recapcha 
Python :: raise keyerror(key) from none os.environ 
Python :: how to auto create a three dimensional array in python 
Python :: IPython default setup 
Python :: python min date from dictionary 
Python :: where are dictd dictionaries 
Python :: how to insert value in admin panel in django 
Python :: sklearn isolationforest 
Python :: mod trong python 
Python :: loop only to the 6th element python 
Python :: rename column in dataframe 
Python :: how to run django server outside world 
Python :: py draw matrix of black square and white circle 
Python :: sorting dictionary in python 
Python :: datetime 
Python :: find factorial of a number in python 
Python :: c vs python speed 
Python :: nim game in python 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =