Open lx2m17 opened 1 year ago
Thanks for spotting this @lx2m17. Would you like to correct this and issue a pull request?
Hey, I checked out this bug and figured out it is not an actual issue.
When I run the make_graph function from the image above for the given adjacency matrix, the causal graph is:
graph_dot = make_graph(model.adjacency_matrix_, labels=labels)
And here's the result when running make_dot from causallearn with the same adjacency matrix:
from causallearn.search.FCMBased.lingam.utils import make_dot
make_dot(model.adjacency_matrix_, labels=labels)
Both of them are the same i.e the edges are in the correct direction.
Side note: I found the use of variable confusing at this one part since its used for both Lingam and CausalModel so I've renamed one of it and created a PR.
Hi guys, I found a wrong place in the example notebook code, the direction of the edges seems put wrong place in the for loops line, can anyone check and fix it? (File path: docs/source/example_notebooks/dowhy_causal_discovery_example.ipynb)