Skip to content

Add "Randomized SVD" solver option to KernelPCA for faster partial decompositions, like in PCA #12068

Closed

Description

@smarie

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 !)

Activity

  1. jnothman commented on Sep 15, 2018

    @jnothman
    Member
  2. jnothman commented on Sep 15, 2018

    @jnothman
    Member
  3. smarie commented on Sep 25, 2018

    @smarie
    ContributorAuthor

    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 ?

  4. lobpcg commented on Sep 25, 2018

    @lobpcg
    Contributor

    '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.

  5. smarie commented on Sep 26, 2018

    @smarie
    ContributorAuthor

    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.

  6. lobpcg commented on Oct 4, 2018

    @lobpcg
    Contributor

    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

  7. added this to the 1.0 milestone on Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions