Comments (2)
Hi, thanks for your interest. It is possible to get the adjacency matrix for PC & FCI as mentioned in the doc as follows:
And for FCI (G.graph[i,j]):
I don't think there is an existing function for the first point, but I believe transferring the graph class in causal-learn to networkx-like graphs using pywhy-graph might be promising.
from causal-learn.
Thank you, I found that the causal graph object returned by PC can be visualized by networkx as shown in this doc, however, when I try to do the same using the Graph G returned by FCI it is not possible as the graph class is different in this case. The object returned by PC is 'causallearn.graph.GraphClass.CausalGraph', however, in case of FCI as we get two outputs (graph & edges), the graph object returned by FCI is completely different and I cannot visualise it. I don't know which python script should I edit to define the 'G.to_nx_graph()' method as shown here, that can be used for FCI. Thank you in advance!
from causal-learn.
Related Issues (20)
- TestFCI failed in graph_utils.adj_precision HOT 3
- How to save and reload CausalGraph class? HOT 5
- Consistency parameter in independence_test_method HOT 1
- FCM lags suspicious results HOT 5
- PNL - Test2 HOT 3
- Data correlation matrix is singular HOT 5
- when will the Causal-Learn support causal evaluation HOT 2
- Reference PC stable HOT 1
- FCI implementation HOT 7
- Questions about is_dseparated_from HOT 3
- Using FCI with true graph known, specifying latent variables and background knowledge? HOT 8
- does this codebase support some recent causal discovery methods like, notears, dag-gnn,and so on HOT 2
- A potential Bug in GES.py HOT 1
- Null Hypothesis in Conditoinal Independence Tests HOT 2
- How to construct a causallearn.graph.Graph object from an numpy array? HOT 2
- Boostrap Utilities HOT 1
- Background knowledge not used correctly? HOT 1
- Implementation for CCI? HOT 1
- How to estimate the causal effect? HOT 1
- Different results with Tetrad and causal-learn implementations. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from causal-learn.