Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

scikit learn pca

from sklearn.decomposition import KernelPCA
kpca = KernelPCA(n_components = 2, kernel = 'rbf')
X_train = kpca.fit_transform(X_train)
X_test = kpca.transform(X_test)
Comment

PREVIOUS NEXT
Code Example
Python :: python partial 
Python :: breadth first search graph python 
Python :: python binary string to int 
Python :: how to run python module every 10 sec 
Python :: get an item out of a list python 
Python :: Python code for checking if a number is a prime number 
Python :: try except python not working 
Python :: discord.py mention user 
Python :: To visualize the correlation between any two columns | scatter plot graph 
Python :: histogram image processing python 
Python :: int to ascii python 
Python :: tuple plot python 
Python :: Auto-removal of grids by pcolor() and pcolormesh() is deprecated since 3.5 and will be removed two minor releases later; please call grid(False) first. 
Python :: python pipe 
Python :: python script as service linux 
Python :: iterative dfs python 
Python :: c++ vs python 
Python :: soup findall table 
Python :: python int to binary 
Python :: python getters and setters 
Python :: Convert two lists into a dictionary in python 
Python :: blender scripting set active ojbect 
Python :: python check if dataframe series contains string 
Python :: django query multiple conditions 
Python :: pyplot python 
Python :: pyqt button clicked connect 
Python :: slice notation python 
Python :: tensorflow matrix multiplication 
Python :: python b string 
Python :: python argparse optional required 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =