Skip to content

Nystrom SVD Bug: eigvals argument in scipy.linalg.eigh has been deprecated #6

@zjf4

Description

@zjf4

Hi all,

I tried to run EigenPro 3.0 but ran into an error in the Nystrom SVD step. The error was TypeError: eigh() got an unexpected keyword argument 'eigvals'. The latest version of Scipy has deprecated this argument. The fix is easy. You just need to replace the keyword argument with subset_by_index.

vals, vecs = linalg.eigh(scaled_kmat, subset_by_index=(n_sample - top_q, n_sample - 1)).

I wanted to bring this to your attention so you can patch it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions