Skip to content

[BUG] Better warning / assert and handling of cases where CAGRA graph degree is not strictly larger than intermediate graph degree. #2033

Description

@cjnolet

Currently, CAGRA does an assertion that graph degree is not less than intermediate graph degree, but even if graph degree is too close to intermediate graph degree, it's possible there's not enough neighborhood information encoded in the intermediate knn graph for the pruning to have a connected graph.

When this case happens, the user gets an error that's nebulus and doesn't provide enough information for the user to

  1. know what happened, and
  2. fix the issue.

In general, users aren't going to know the complex relationships between parameters like this, but we often make a suggestion that intermediate graph degree by 1.5 * graph degree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Todo
    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions