* updated test setup and added new version

* removed advanced tests

* updated readme
This commit is contained in:
Amit Sharma 2022-03-20 19:45:15 +05:30 коммит произвёл GitHub
Родитель 77906cd4ed
Коммит 33f0ff94d9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
8 изменённых файлов: 34 добавлений и 19 удалений

2
.github/workflows/python-package.yml поставляемый
Просмотреть файл

@ -38,7 +38,7 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
pytest -v -m "not advanced"
- name: Check package consistency with twine
run: |
python setup.py check sdist bdist_wheel

Просмотреть файл

@ -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/>`_.
.. raw:: html
<details>
<summary><a><strong><em>Table of Contents</em></strong></summary>
.. i here comment toctree::
.. i here comment :maxdepth: 4
.. i here comment :caption: Contents:
.. contents::
.. contents:: **Contents**
.. raw:: html
</details>
News
-----
**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
<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
----------------------------------------------------------------------

Просмотреть файл

@ -24,7 +24,7 @@ copyright = '2020, Microsoft'
author = 'Amit Sharma, Emre Kiciman'
# The short X.Y version
version = '0.7'
version = '0.7.1'
# The full version, including alpha/beta/rc tags
release = ''

Просмотреть файл

@ -1 +1 @@
0.7
0.7.1

4
pyproject.toml Normal file
Просмотреть файл

@ -0,0 +1,4 @@
[tool.pytest.ini_options]
markers = [
"advanced: not be to run each time. only on package updates."
]

Просмотреть файл

@ -39,7 +39,7 @@ setup(
license='MIT',
long_description=long_description,
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',
classifiers=[ # Optional
'Development Status :: 4 - Beta',

Просмотреть файл

@ -21,7 +21,9 @@ advanced_notebooks = [
"dowhy_refuter_notebook.ipynb",
"DoWhy-The Causal Story Behind Hotel Booking Cancellations.ipynb", # needs xgboost too
# 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
@ -62,14 +64,16 @@ def test_confounder_notebook():
nb, errors = _notebook_run(NOTEBOOKS_PATH+"dowhy_confounder_example.ipynb")
assert errors = []
"""
parameter_list=[]
parameter_list = []
for nb in notebooks_list:
if nb in advanced_notebooks:
param = pytest.param(nb,
marks=[pytest.mark.skip, pytest.mark.advanced],
id=nb)
marks=[pytest.mark.advanced, pytest.mark.notebook],
id=nb)
else:
param = pytest.param(nb, id=nb)
param = pytest.param(nb,
marks=[pytest.mark.notebook],
id=nb)
parameter_list.append(param)
@pytest.mark.parametrize("notebook_filename", parameter_list)