-
-
Notifications
You must be signed in to change notification settings - Fork 25.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get eigenvectors of kernel pca #17171
Comments
The docstrings are correct,
The equivalence comes from the fact that |
take |
Hi, first time contributor here. I've added some explanations about KPCA, as asked in the issue and created a PR (#19201 ). If there's anything that you think should be changed, don't hesitate. I'm still a student so I wouldn't be surprised if I messed something up. Thank you and have a nice day. |
@TomDLT Hi, could you take a look at this if you have time please ? Thanks |
Hi Asami, thanks a lot for your pull-request, it is much appreciated. I will take a look at it when I have time. |
Hi, I would like to obtain the Eigenvectors Matrix (n_samples ,n_featurees) from Kernel PCA , is possible? |
To get the eigenvectors in a shape |
Hello,
I'm using kernel pca to reduce dimensionality and I need eigenvalues and eigenvectors. In PCA, I know pca.explained_variance_ is eigenvalues and pca.components_ is eigenvectors. I read the sklearn document and found the below words in kpca.
Compare with pca's document, I'm confused about why the eigenvectors's shape is not equal. In pca, the shape is (n_components, n_features) while kpca is (n_samples, n_components). Here is pca's document.
I know if the kpca's kernel is
linear
, it is exactly pca. So I want know how to get eigenvalues and eigenvectors in kpca. Can you help me?The text was updated successfully, but these errors were encountered: