-
Notifications
You must be signed in to change notification settings - Fork 260
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
do_intervention never ends running despite simple query #45
Comments
Hello @qbphilip |
Same problem when I do intervention on a little large dataset. Some nodes can be queried easily while some cannot be. |
@ironcrypto Could you replicate this on a minimum example, e.g. on a small synthetic dataset? |
@qbphilip yes I think so. Do you have such dataset or should I create it? |
Hi @ironcrypto, it would be great if you could provide us this dataset to debug this. Thanks :) |
@SteveLerQB |
Hi @SteveLerQB @qbphilip |
thank you @ironcrypto for reporting this. This is also linked to issue #100. The above has been fixed with this commit will be available in the next CausalNex release. |
Hi QB––
Description
I am running a do-calculus on a small dataset (116x32) with 2 to 4 discretized buckets.
The BN fits the CPDs in 2 sec, so relatively good perf.
However a simple do-intervention takes forever and even never ends running, I waited several hours then I interrupted kernel.
Steps to Reproduce
$ from causalnex.inference import InferenceEngine
$ ie = InferenceEngine(bn)
$ ie.do_intervention("cD_TropCycl", {1: 0.2, 2: 0.8})
$ print("distribution after do", ie.query()["cD_TropCycl"])
Expected Result
Shouldn't it be running just a few seconds given the low number of buckets?
How long does it normally take?
Actual Result
no results returned after hours running a simple query.
Your Environment
Include as many relevant details about the environment in which you experienced the bug:
pip show causalnex
): 0.5.0python -V
): python 3.7.6Thank you very much!!
The text was updated successfully, but these errors were encountered: