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

fixed bug in rmvDAG #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fixed bug in rmvDAG #2

wants to merge 1 commit into from

Conversation

fdabl
Copy link

@fdabl fdabl commented Oct 10, 2018

Hi,

it seems that the current version of rmvDAG samples from the error matrix when the sum of all edge weights is not larger than 0. I don't think this is what we want. As a minimal example, assume we have two nodes, X and Y, where the edge X -> Y is -0.5. The current rmvDAG function would sample from the error matrix instead of accounting for this negative effect.

I have fixed this by writing sum(abs(weightMatrix)) > 0 instead of sum(weightMatrix) > 0.

Cheers,
Fabian

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.

1 participant