-
Notifications
You must be signed in to change notification settings - Fork 15
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
kPCA reproducibility #3
Comments
you are using kpca_pred_exp <- predict(kpca_obj_exp, te_dat)[, 1:3] To get the actual rotation matrix of a pca, you need to look in the environment of its apply function: emb <- embed(loadDataSet("Iris"), "PCA")
environment(emb@apply)$rot It even has nice column and row names, for a kPCA object you would have use I will make some convenience functions for extracting interesting information from objects. |
My apologies for that; I hate is when I get issues with bad code =[ |
don't worry, happens to me all the time. |
I'm not able to reproduce the kernel PCA results in comparison to the underlying function. Here's an example:
I get
BTW what's the best way to access the objects generated in the
fun
code from the base object? I'd like to get ahold of the PCA rotation matrix or the kPCA objectres
. That gets computed once on the first call?Thanks,
Max
The text was updated successfully, but these errors were encountered: