📜  scikit learn pca - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:24.487000             🧑  作者: Mango

代码示例2
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)