Skip to content

fixed bug in rmvDAG#2

Open
fdabl wants to merge 1 commit intocran:masterfrom
fdabl:master
Open

fixed bug in rmvDAG#2
fdabl wants to merge 1 commit intocran:masterfrom
fdabl:master

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