Version Bump: 0.7.1 (#398)
* updated test setup and added new version * removed advanced tests * updated readme
This commit is contained in:
Родитель
77906cd4ed
Коммит
33f0ff94d9
|
@ -38,7 +38,7 @@ jobs:
|
||||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
pytest
|
pytest -v -m "not advanced"
|
||||||
- name: Check package consistency with twine
|
- name: Check package consistency with twine
|
||||||
run: |
|
run: |
|
||||||
python setup.py check sdist bdist_wheel
|
python setup.py check sdist bdist_wheel
|
||||||
|
|
11
README.rst
11
README.rst
|
@ -37,20 +37,11 @@ For a quick introduction to causal inference, check out `amit-sharma/causal-infe
|
||||||
|
|
||||||
Documentation for DoWhy is available at `microsoft.github.io/dowhy <https://microsoft.github.io/dowhy/>`_.
|
Documentation for DoWhy is available at `microsoft.github.io/dowhy <https://microsoft.github.io/dowhy/>`_.
|
||||||
|
|
||||||
.. raw:: html
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary><a><strong><em>Table of Contents</em></strong></summary>
|
|
||||||
|
|
||||||
.. i here comment toctree::
|
.. i here comment toctree::
|
||||||
.. i here comment :maxdepth: 4
|
.. i here comment :maxdepth: 4
|
||||||
.. i here comment :caption: Contents:
|
.. i here comment :caption: Contents:
|
||||||
.. contents::
|
.. contents:: **Contents**
|
||||||
|
|
||||||
.. raw:: html
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
News
|
News
|
||||||
-----
|
-----
|
||||||
**2022.03.13**: **Call for Content**.
|
**2022.03.13**: **Call for Content**.
|
||||||
|
|
|
@ -6,6 +6,22 @@ DoWhy is hosted on GitHub.
|
||||||
You can browse the code in a html-friendly format `here
|
You can browse the code in a html-friendly format `here
|
||||||
<https://github.com/Microsoft/dowhy>`_.
|
<https://github.com/Microsoft/dowhy>`_.
|
||||||
|
|
||||||
|
v0.7.1: Added Graph refuter. Support for dagitty graphs and external estimators
|
||||||
|
--------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* Graph refuter with conditional independence tests to check whether data conforms to the assumed causal graph
|
||||||
|
|
||||||
|
* Better docs for estimators by adding the method-specific parameters directly in its own init method
|
||||||
|
|
||||||
|
* Support use of custom external estimators
|
||||||
|
|
||||||
|
* Consistent structure for init_params for dowhy and econml estimators
|
||||||
|
|
||||||
|
* Add support for Dagitty graphs
|
||||||
|
|
||||||
|
* Bug fixes for GLM model, causal model with no confounders, and hotel case-study notebook
|
||||||
|
|
||||||
|
Thank you @EgorKraevTransferwise, @ae-foster, @anusha0409 for your contributions!
|
||||||
|
|
||||||
v0.7: Better Refuters for unobserved confounders and placebo treatment
|
v0.7: Better Refuters for unobserved confounders and placebo treatment
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
|
|
|
@ -24,7 +24,7 @@ copyright = '2020, Microsoft'
|
||||||
author = 'Amit Sharma, Emre Kiciman'
|
author = 'Amit Sharma, Emre Kiciman'
|
||||||
|
|
||||||
# The short X.Y version
|
# The short X.Y version
|
||||||
version = '0.7'
|
version = '0.7.1'
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
release = ''
|
release = ''
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
0.7
|
0.7.1
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
markers = [
|
||||||
|
"advanced: not be to run each time. only on package updates."
|
||||||
|
]
|
2
setup.py
2
setup.py
|
@ -39,7 +39,7 @@ setup(
|
||||||
license='MIT',
|
license='MIT',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
url='https://github.com/microsoft/dowhy', # Optional
|
url='https://github.com/microsoft/dowhy', # Optional
|
||||||
download_url='https://github.com/microsoft/dowhy/archive/v0.7.tar.gz',
|
download_url='https://github.com/microsoft/dowhy/archive/v0.7.1.tar.gz',
|
||||||
author='Amit Sharma, Emre Kiciman',
|
author='Amit Sharma, Emre Kiciman',
|
||||||
classifiers=[ # Optional
|
classifiers=[ # Optional
|
||||||
'Development Status :: 4 - Beta',
|
'Development Status :: 4 - Beta',
|
||||||
|
|
|
@ -21,7 +21,9 @@ advanced_notebooks = [
|
||||||
"dowhy_refuter_notebook.ipynb",
|
"dowhy_refuter_notebook.ipynb",
|
||||||
"DoWhy-The Causal Story Behind Hotel Booking Cancellations.ipynb", # needs xgboost too
|
"DoWhy-The Causal Story Behind Hotel Booking Cancellations.ipynb", # needs xgboost too
|
||||||
# will be removed
|
# will be removed
|
||||||
"dowhy_optimize_backdoor_example.ipynb"
|
"dowhy_optimize_backdoor_example.ipynb",
|
||||||
|
# applied notebook, not necessary to test each time
|
||||||
|
"dowhy_ranking_methods.ipynb"
|
||||||
]
|
]
|
||||||
|
|
||||||
# Adding the dowhy root folder to the python path so that jupyter notebooks
|
# Adding the dowhy root folder to the python path so that jupyter notebooks
|
||||||
|
@ -62,14 +64,16 @@ def test_confounder_notebook():
|
||||||
nb, errors = _notebook_run(NOTEBOOKS_PATH+"dowhy_confounder_example.ipynb")
|
nb, errors = _notebook_run(NOTEBOOKS_PATH+"dowhy_confounder_example.ipynb")
|
||||||
assert errors = []
|
assert errors = []
|
||||||
"""
|
"""
|
||||||
parameter_list=[]
|
parameter_list = []
|
||||||
for nb in notebooks_list:
|
for nb in notebooks_list:
|
||||||
if nb in advanced_notebooks:
|
if nb in advanced_notebooks:
|
||||||
param = pytest.param(nb,
|
param = pytest.param(nb,
|
||||||
marks=[pytest.mark.skip, pytest.mark.advanced],
|
marks=[pytest.mark.advanced, pytest.mark.notebook],
|
||||||
id=nb)
|
id=nb)
|
||||||
else:
|
else:
|
||||||
param = pytest.param(nb, id=nb)
|
param = pytest.param(nb,
|
||||||
|
marks=[pytest.mark.notebook],
|
||||||
|
id=nb)
|
||||||
parameter_list.append(param)
|
parameter_list.append(param)
|
||||||
|
|
||||||
@pytest.mark.parametrize("notebook_filename", parameter_list)
|
@pytest.mark.parametrize("notebook_filename", parameter_list)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче