Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HITS convergence error. #4043

Merged
merged 3 commits into from
Dec 6, 2023

Conversation

seunghwak
Copy link
Contributor

We set epsilon in hits call to 1e-6 or 1e-8 in our tests. HITS internally uses max. norm to normalize HITS values after each iteration before computing HITS value changes in two consecutive iterations. Sum of HITS values tends to grow with the number of vertices. Using a fixed epsilon leads to convergence failure in large graphs.

This PR updates HITS to compare sum of HITS value changes in two consecutive iterations with epsilon * graph_view.number_of_vertices() following networkx documentation (https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.link_analysis.hits_alg.hits.html).

@seunghwak seunghwak requested a review from a team as a code owner December 5, 2023 00:27
@seunghwak seunghwak self-assigned this Dec 5, 2023
@seunghwak seunghwak added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change and removed cuGraph labels Dec 5, 2023
@seunghwak seunghwak added this to the 24.02 milestone Dec 5, 2023
Copy link
Contributor

@jnke2016 jnke2016 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@ChuckHastings
Copy link
Collaborator

/merge

@rapids-bot rapids-bot bot merged commit 65df1a2 into rapidsai:branch-24.02 Dec 6, 2023
74 checks passed
@seunghwak seunghwak deleted the bug_hits_convergence branch May 22, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuGraph improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants