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.

Home Page:https://www.pywhy.org/dowhy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I get more log messages from dowhy?

FTamas77 opened this issue · comments

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?

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

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

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

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