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
6.91k stars 921 forks source link

How can I get more log messages from dowhy? #1047

Closed FTamas77 closed 7 months ago

FTamas77 commented 9 months ago

How can I get more log messages from dowhy? I couldn't find any suggestions on how to debug my code. For example, I have this output:

` Causal Estimate

Identified estimand

Estimand type: EstimandType.NONPARAMETRIC_ATE

Estimand : 1

Estimand name: backdoor Estimand expression: d ───────────────(E[CO2]) d[teljesítmény] Estimand assumption 1, Unconfoundedness: If U→{something} and U→CO2 then P(CO2|something,,U) = P(CO2 |something,)

Realized estimand

b: CO2~something Target units: ate

Estimate

Mean value: nan `

My code uses a straightforward model. How can I figure out why there is a "nan"? Is it a programming issue? Or is it related to the model? Or simply, it means there is no correlation?

github-actions[bot] commented 8 months ago

This issue is stale because it has been open for 14 days with no activity.

amit-sharma commented 8 months ago

Usually that is because there are invalid entries in your pandas dataframe. You can try increasing the verbosity of the logging settings, but I'm not sure it will be help you with this issue.

To see more log messages, you can setup your own the logging.config.dictConfig with level debug. You may want to reference dowhy in the loggers section of the config. For example, see this post: https://stackoverflow.com/questions/7507825/where-is-a-complete-example-of-logging-config-dictconfig

github-actions[bot] commented 8 months ago

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] commented 7 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.