Skip to content

Conversation

@jchodera
Copy link
Contributor

@jchodera jchodera commented Jan 8, 2022

Description

This PR fixes issue #37 (Graphs containing self-edges will produce erroneous MLE estimates), and adds a test that failed prior to the fix to verify the issue is resolved.

Status

  • Ready to go

@jchodera jchodera requested a review from ijpulidos January 8, 2022 04:01
@codecov-commenter
Copy link

Codecov Report

Merging #38 (78c8358) into master (30ca355) will increase coverage by 1.69%.
The diff coverage is 100.00%.

Copy link
Collaborator

@ijpulidos ijpulidos left a comment

Choose a reason for hiding this comment

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

Nice catch. I have some non-blocking comments, but this should be merged as it is.

Comment on lines +217 to +219
if i == j:
# The MLE solver will fail if we include self-edges, so we need to omit these
continue
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice catch! This looks good. Just thinking that the loops in lines 193 and 214 could be merged (should increase performance). But that would also require that the loop in line 210 to happen before. It's probably a small increase in performance but thought it should be mentioned. Non-blocking.

@jchodera jchodera merged commit 1e355a6 into master Feb 16, 2022
@jchodera jchodera deleted the self-edges branch February 16, 2022 05:07
@jchodera jchodera mentioned this pull request Feb 16, 2022
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.

4 participants