Answers for "scikit learn pca import data"

1

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)
Posted by: Guest on January-26-2021

Python Answers by Framework

Browse Popular Code Answers by Language