Skip to content

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

@gxli

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.

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