📅  最后修改于: 2022-03-11 14:46:24.487000             🧑  作者: Mango
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)