Skip to content

Commit

Permalink
Version Bump: 0.7.1 (#398)
Browse files Browse the repository at this point in the history
* updated test setup and added new version

* removed advanced tests

* updated readme
  • Loading branch information
amit-sharma committed Mar 20, 2022
1 parent 77906cd commit 33f0ff9
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 1 addition & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

.. raw:: html
.. contents:: **Contents**

</details>

News
-----
**2022.03.13**: **Call for Content**.
Expand Down
16 changes: 16 additions & 0 deletions docs/source/code_repo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
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 = ''

Expand Down
2 changes: 1 addition & 1 deletion dowhy/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7
0.7.1
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[tool.pytest.ini_options]
markers = [
"advanced: not be to run each time. only on package updates."
]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
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',
Expand Down
14 changes: 9 additions & 5 deletions tests/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 33f0ff9

Please sign in to comment.