Comments (4)
Thanks @adamhaber-atidot for raising this. This error is related to how the code uses pygraphviz or pydot to load a graph file. I have fixed this now and included support for dot files using either pydot or pygraphviz.
The library also supports the gml format (less error-prone).
Hope this works on the latest commit. Let me know if you face any problems.
from dowhy.
I've updated to the latest commit and got the same error message. Also tried feeding the output of pydot
's .to_string()
as an argument and it didn't work.
Additional information that might be relevant - this is the graph representation I use for testing:
digraph G [Z -> X;Z -> Y;X -> Y;]
Any other debugging information that might be useful?
from dowhy.
Ah, most probably the error is that you are providing the series data in the (outcome, treatment) parameters, while code only requires the name of the columns. So instead, try:
model=CausalModel(data=df, outcome='Y', treatment='X', graph="graph.dot")
Another problem could be in the dot file syntax. Your snippet uses square brackets [] instead of curly braces {} in your dot file. This one is the correct dot format:
digraph G {Z->X; Z->Y; X->Y}
Hopefully this should solve the problem.
from dowhy.
Thanks! That did the trick.
from dowhy.
Related Issues (20)
- Identify effect not showing backdoor variable HOT 5
- numpy has no attribute 'long' HOT 1
- No common causes/confounders present. HOT 3
- Сausal effect for non-linear relationship HOT 1
- Compatability with networkx is broken HOT 8
- Continuous Treatment Variable HOT 1
- CausalEstimator reporting a 90% instead of 95% confidence interval for bootstrapping? HOT 5
- Hanging when refuting right after calculating confidence interval HOT 2
- Incomplete `method_name` argument documentation in `estimate_effect` HOT 4
- Add accessor to CausalModel._estimator_cache HOT 4
- Evaluation Metrics for Causal Graphs HOT 4
- Inconsistent encoding with pandas get_dummies causes prediction and effect estimation errors HOT 6
- Falsification of given DAG: not working on simulated data? HOT 4
- Causal Graph not provided. DoWhy will construct a graph based on data inputs. HOT 1
- how to use the function of estimate_effect of CausalModel class? HOT 4
- gcm.arrow_strength providing different ranking HOT 6
- conda release 0.11.1 is missing HOT 1
- File Not Found error in Jupyter Notebook when i use auto.assign_causal_mechnism HOT 8
- buggidy giggidy
- Counterfactual Reasoning with Categorical Variables HOT 3
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 dowhy.