Skip to content

Computational of the local dimension interrupted by empty return values from PCA #1225

Description

@gxli

Hi, I have found a bug while computing the local dimension. For my data, this line

np.cumsum(pca.explained_variance_ratio_) > local_variance_threshold)[0][0]

in plot.py crashes.

I have fixed the issue by placing it in a try block and assigning the value -1 when estimating the local dimension fails. I am submitting a PR and see you there.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions