You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add "Randomized SVD" solver option to KernelPCA for faster partial decompositions, like in PCA #12068
PCA currently offers an svd_solver parameter allowing users to get faster partial decomposition using two methods: 'arpack' and 'randomized' svd.
KernelPCA offers an eigen_solver parameter allowing users to get faster partial decomposition using 'arpack', but 'randomized' svd is not supported. Would it seem reasonable to add it in the list of possible solvers ?
(Thanks grilling for the suggestion and support for implementation !)
'amg' is an option for 'lobpcg' that may make LOBPCG work faster, but the effect is highly problem dependent. It is unclear to me if the 'amg' option would work well for kPCA. Having LOBPCG already added to kPCA, it would be easy to test 'amg' and check it is worth adding 'amg' to kPCA.
ok then. I suggest to wait for the current pull request to be merged first, since it already depends on two others that will be relevant in the case of 'lobpcg for kPCA' (#12145 concerns eigenvalues validation, and #12143 is to fix kPCA behaviour in case of perfect zero-eigenvalues). It will be very easy to add the new method to the benchmark provided in #12069 so that you have a nice plot of execution times.
I added LOBPCG as an SVD solver to PCA in #12079 and to Truncated PCA in #12080, see pull request #12291 . So adding LOBPCG to kPCA should now probably be especially simple.
Activity
Added 'randomized' svd support for partial KernelPCA decomposition, a…
jnothman commentedon Sep 15, 2018
jnothman commentedon Sep 15, 2018
lobpcg commentedon Sep 24, 2018
You might also want to add LOBPCG https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.linalg.lobpcg.html which is already used in http://scikit-learn.org/stable/modules/generated/sklearn.manifold.SpectralEmbedding.html and http://scikit-learn.org/stable/modules/generated/sklearn.cluster.spectral_clustering.html
LOBPCG is expected to outperform both ARPACK and "randomized" solvers for large problems
smarie commentedon Sep 25, 2018
Cool suggestion! I see that 'amg' is also mentioned in the doc, is there any reason why we should not add it in kPCA too ?
lobpcg commentedon Sep 25, 2018
'amg' is an option for 'lobpcg' that may make LOBPCG work faster, but the effect is highly problem dependent. It is unclear to me if the 'amg' option would work well for kPCA. Having LOBPCG already added to kPCA, it would be easy to test 'amg' and check it is worth adding 'amg' to kPCA.
smarie commentedon Sep 26, 2018
ok then. I suggest to wait for the current pull request to be merged first, since it already depends on two others that will be relevant in the case of 'lobpcg for kPCA' (#12145 concerns eigenvalues validation, and #12143 is to fix kPCA behaviour in case of perfect zero-eigenvalues). It will be very easy to add the new method to the benchmark provided in #12069 so that you have a nice plot of execution times.
lobpcg commentedon Oct 4, 2018
I added LOBPCG as an SVD solver to PCA in #12079 and to Truncated PCA in #12080, see pull request #12291 . So adding LOBPCG to kPCA should now probably be especially simple.
EDIT: #12291 closed, instead see #12319