Skip to content

Nested loops not scalable #1

@choltz95

Description

@choltz95

Thank you very much for releasing the code for your paper!

Not serious, but I encounter some scalability issues at pairwise distance computation for > 10k points due to create_distance_matrix graph_utils.py L8.

Using pdist resolved my issue. Could also do numpy vectorize/broadcasting/einsum to avoid sp dependency.
Another "nice-to-have" would be preservation of kernel sparsity (i.e. no dense nxn matrices in memory).

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