Getting started with DoWhy: A simple example
# https://www.pywhy.org/dowhy/v0.8/example_notebooks/dowhy_simple_example.html !pip install git+https://github.com/microsoft/dowhy.git import numpy as np import pandas as pd from dowhy import CausalModel import dowhy.datasets # Avoid printing dataconversion warnings from sklearn and numpy import warnings from sklearn.exceptions import DataConversionWarning warnings.filterwarnings(action='ignore', category=DataConversionWarning) warnings.filterwarnings(action='ignore', category=FutureWarning) # Config dict to set the logging level import logging import logging.config DEFAULT_LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'loggers': { '': { 'level': 'WARN', }, } } logging.config.dictConfig(DEFAULT_LOGGING) logging.info("Getting started with DoWhy. Running notebook...") data = dowhy.datasets.linear_dataset(beta=10, ...