Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@JelmerBot
Copy link
Collaborator

@JelmerBot JelmerBot commented Jan 9, 2025

This PR resolves #668 by silencing numpy's divide by zero warnings for the eccentricity computation. For the ApproximationGraph edge weights, I now divide by 1 / (1 + mutual reachability) instead. This makes the values lie between 0 and 1, which seems more appropriate for graph layout algorithms that use edge weight as a similarity value.

@lmcinnes lmcinnes merged commit 2fada32 into scikit-learn-contrib:master Jan 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Divide by zero in branch detector

2 participants