py-why / EconML

ALICE (Automated Learning and Intelligence for Causation and Economics) is a Microsoft Research project aimed at applying Artificial Intelligence concepts to economic decision making. One of its goals is to build a toolkit that combines state-of-the-art machine learning techniques with econometrics in order to bring automation to complex causal inference problems. To date, the ALICE Python SDK (econml) implements orthogonal machine learning algorithms such as the double machine learning work of Chernozhukov et al. This toolkit is designed to measure the causal effect of some treatment variable(s) t on an outcome variable y, controlling for a set of features x.
https://www.microsoft.com/en-us/research/project/alice/
Other
3.64k stars 689 forks source link

Importing overrides logging.basicConfig #851

Open Ftrejo23 opened 4 months ago

Ftrejo23 commented 4 months ago

Hello there I am setting up my main script and narrowed the issue down to this import below.

from econml.dml import NonParamDML

I looked in the documentation and couldn't find anything related to logging. This import overrides my logging basicConfig

logging.basicConfig(
            level=logging.INFO,
            format='%(asctime)s %(levelname)s: %(message)s',
            datefmt='%Y-%m-%d %H:%M:%S',
            handlers=[
                logging.FileHandler(log_file, mode='a+'),
                logging.StreamHandler(sys.stdout)
            ],
            force=True
        )

Any help or guidance is much appreciated!

kbattocchi commented 4 months ago

We don't use the logging library internally, so I suspect this is due to some transitive dependency.