Skip to content

new feature: add LOBPCG as an SVD solver in PCA  #12079

Open

Activity

  1. aishgrt1 commented on Sep 27, 2018

    @aishgrt1
    Contributor

    @jnothman @amueller Shall I take this?

  2. lobpcg commented on Oct 3, 2018

    @lobpcg
    ContributorAuthor

    @jnothman @amueller @aishgrt1 Please see PR #12319 Comments and help are welcome and needed!

    scipy/scipy#9352 will address the issue that
    https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.linalg.lobpcg.html itself needs editing to properly work in float32 used in the example plot_faces_decomposition, so this example is not included in the PR #12319.

    I am unsure if the transpose='auto' option in lobpcg_svd, which is copy/pasted from randomised_svd , actually makes the eigenvalue problem smaller, not larger, but it a common issue with randomised_svd, so it needs to be addressed separately from this lobpcg_svd add-on.

  3. lobpcg commented on Oct 12, 2018

    @lobpcg
    ContributorAuthor

    @aishgrt1 @jnothman @amueller
    Our coding for this issues and #12080 has been completed, please see PR #12319 and react.

  4. jnothman commented on Oct 14, 2018

    @jnothman
    Member
  5. lobpcg commented on Oct 30, 2021

    @lobpcg
    ContributorAuthor

    scipy/scipy#10830 has implemented LOBPCG solver in svds in scipy while this PR being stalled. Which allows using lobpcg svd_solver to PCA and TruncatedSVD simply by calling https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.linalg.svds.html with solver=‘lobpcg’

  6. flying-sheep commented on Oct 15, 2024

    @flying-sheep

    Can this be reopened? sklearn.decomposition.PCA still doesn’t support svd_solver='lobpcg'.

    Should be a simple case of updating the validators and passing this on:

    U, S, Vt = svds(X_centered, k=n_components, tol=self.tol, v0=v0)

  7. reopened this on Feb 24, 2026
  8. lobpcg commented on Feb 24, 2026

    @lobpcg
    ContributorAuthor

    Can this be reopened? sklearn.decomposition.PCA still doesn’t support svd_solver='lobpcg'.

    Should be a simple case of updating the validators and passing this on:

    U, S, Vt = svds(X_centered, k=n_components, tol=self.tol, v0=v0)

    OK, reopened

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions