py-why / dowhy

DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.
https://www.pywhy.org/dowhy
MIT License
7.1k stars 935 forks source link

Fix bug in gcm is_probability_matrix function #895

Closed bloebp closed 1 year ago

bloebp commented 1 year ago

Before, numeric arrays with the wrong dtype would cause an error when summing them up and using np.isclose. Now, the dtype is explicitly changed to float64.