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

Understanding the FCI outputs (graph vs. printed edges) #180

Open
mozolcer opened this issue Apr 19, 2024 · 3 comments
Open

Understanding the FCI outputs (graph vs. printed edges) #180

mozolcer opened this issue Apr 19, 2024 · 3 comments

Comments

@mozolcer
Copy link

mozolcer commented Apr 19, 2024

I apologize if this is a naive question, but I want to ask. In my PAG resulting from FCI, I see that X4 --> X5 relationship is observed in the graph. But, the printed relationships between edges and nodes as a result of running FCI algorithm, does not include the same path that is in the PAG graph. How should I interpret this? Thank you.

from causallearn.search.ConstraintBased.FCI import fci
from causallearn.utils.GraphUtils import GraphUtils
g, edges = fci(df.to_numpy())
pdy = GraphUtils.to_pydot(g )

Edit: Updated PAG, g.graph, and edges. This time FCI outputs X1 --> X5 and X2 --> X3. But in the PAG, we can see X4 --> X5, X2 --> X5, X6 --> X5, etc. as well.

Screenshot 2024-04-28 223323

g.graph:

image

edges:
image

@kunwuz
Copy link
Collaborator

kunwuz commented Apr 19, 2024

Thanks for your interest. Could you please share the complete g.graph and edges?

@mozolcer
Copy link
Author

Thanks for your interest. Could you please share the complete g.graph and edges?

I couldn't reproduce the same the graph, so I updated the post with the new graph, corresponding g.graph and edges. Thank you

@kunwuz
Copy link
Collaborator

kunwuz commented Apr 29, 2024

Thanks. It seems that the returned graph is consistent with the visualization. Maybe the printed information is not complete, let us check this soon.

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

No branches or pull requests

2 participants