-
Notifications
You must be signed in to change notification settings - Fork 13
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
random_cids sometimes hangs forever #45
Comments
Traceback from stopping the test:
I don't know the details of what it's trying to do but in my tests sometimes |
Interesting. I've never noticed it failing locally, but I have seen the github actions version time out occasionally. My guess is that the matrices get really large when a single node have many parents, because the number of possible parent outcomes grows exponentially with the number of parents. Probably we should add a max_degree parameter to random_cid, and avoid adding edges going into nodes with many parents. |
Alternatively/additionally, we can set the random seed in the test |
Also, I did just push an improvement to random_cpd which I think should generally lead to smaller matrices. So with a bit of luck, the problem has already been solved. |
It's likely the cause of these test failures:
https://github.com/causalincentives/pycid/actions/runs/667798848
https://github.com/causalincentives/pycid/actions/runs/666392113
https://github.com/causalincentives/pycid/actions/runs/666341225
https://github.com/causalincentives/pycid/actions/runs/665993248
Those were from before I split up the test_random functions. When I test locally its test_random_cids_create_one that hangs.
The text was updated successfully, but these errors were encountered: