Граф коммитов

1038 Коммитов

Автор SHA1 Сообщение Дата
Peter Goetz 414d4a34fe Revert all accidental previous commits 2022-10-19 13:24:01 +02:00
Peter Goetz ea88139e20 Fix image name 2022-10-19 13:18:03 +02:00
Peter Goetz a0222b0de8 Add apt-get update 2022-10-19 13:06:36 +02:00
Peter Goetz 69b6dd47f7 Use ghcr.io/py-why/dowhy-example-notebooks-deps as base image 2022-10-19 13:01:54 +02:00
Andres Morales 196c64ac0c Undo fit check
Signed-off-by: Andres Morales <andresmor@microsoft.com>
2022-10-18 09:48:35 -06:00
Andres Morales 2a391ad96d format code
Signed-off-by: Andres Morales <andresmor@microsoft.com>
2022-10-18 09:46:49 -06:00
Andres Morales 250eae74d1 estimate_effect function
Signed-off-by: Andres Morales <andresmor@microsoft.com>
2022-10-18 09:46:49 -06:00
Peter Goetz 50f9a48e13 Try actions/setup-python@v4 2022-10-17 16:26:56 +02:00
Peter Goetz 8b29a8627e Fixup: Remove empty continuation line 2022-10-17 16:07:06 +02:00
Peter Goetz 3a62d438ab Fixup: Dockerfile 2022-10-17 16:06:18 +02:00
Peter Goetz 2554baa0e7 Merge Dockerfiles and build automatically on changes to Dockerfile 2022-10-17 16:03:32 +02:00
Peter Goetz bc839f69c2 fixup: RUNRUN 2022-10-17 15:43:13 +02:00
Peter Goetz 871ab10284 Fix: rename job 2022-10-17 15:38:53 +02:00
Peter Goetz 70870dd655 Add apt-get update 2022-10-17 15:38:35 +02:00
Peter Goetz c7e8559f0f Use container in nightly-tests 2022-10-17 14:27:30 +02:00
Peter Goetz 771187bd80 Add Dockerfile build Action 2022-10-17 14:26:34 +02:00
Peter Goetz 380ead9504 Temporarily make nightly manual 2022-10-17 14:02:29 +02:00
Peter Goetz 807279707e Use googleanalytics sphinx plugin from upstream
This was now updated to latest Google Analytics JS code and should work again.

Signed-off-by: Peter Goetz <pego@amazon.com>
2022-10-10 19:00:23 +02:00
Andres Morales e1652ec3c6
Functional api/refute estimate (#672)
* refactor bootstrap, data_subset, random_common_cause refuters, placebo_treatment_refuter, add_unobserved_common_cause

Signed-off-by: Andres Morales <andresmor@microsoft.com>

* Add documentation

Signed-off-by: Andres Morales <andresmor@microsoft.com>

* Add refute_estimate function

Signed-off-by: Andres Morales <andresmor@microsoft.com>

* Add missing parameter

Signed-off-by: Andres Morales <andresmor@microsoft.com>

* Rename methods for identify_effect

Signed-off-by: Andres Morales <andresmor@microsoft.com>

* Fix notebook imports

Signed-off-by: Andres Morales <andresmor@microsoft.com>

Signed-off-by: Andres Morales <andresmor@microsoft.com>
2022-10-07 10:00:22 +05:30
Amit Sharma 133e7b9a4e
Adding a new folder for community-sourced notebooks (#676)
* added a new community folder for notebooks

* fixed some typos

Signed-off-by: Amit Sharma <amit_sharma@live.com>

* added dataset details

Signed-off-by: Amit Sharma <amit_sharma@live.com>
2022-10-06 11:49:49 -06:00
allcontributors[bot] a5ae592f18
add jlgleason as a contributor for code (#673)
* update CONTRIBUTING.md [skip ci]

* update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-10-05 22:29:50 +05:30
Jeffrey Gleason 0996f4b7e7
Add E-Value Sensitivity Analysis Method (#609)
* add E-value sensitivity analysis to refuters

Signed-off-by: jlgleason <jeffrey.gleason.3@gmail.com>

* add plot, benchmarking, interpretation, notebook

Signed-off-by: jlgleason <jeffrey.gleason.3@gmail.com>

* update parameter name in example notebook

Signed-off-by: jlgleason <jeffrey.gleason.3@gmail.com>

Signed-off-by: jlgleason <jeffrey.gleason.3@gmail.com>
2022-10-05 19:43:40 +05:30
Chris Trevino f523accf96
Merge pull request #662 from py-why/ci/rename_nightly_action
Rename the nightly task 'Nightly Advanced Tests'
2022-09-29 10:41:57 -07:00
Chris Trevino a84b22e1df rename the nightly task 'Nightly Advanced Tests'
Signed-off-by: Chris Trevino <darthtrevino@gmail.com>
2022-09-29 08:59:27 -07:00
emrekiciman 385d916e6a
Remove dowhy_causal_discovery_example from tests (#643)
* Remove dowhy_causal_discovery_example from tests

Remove dowhy_causal_discovery_example.ipynb from advanced tests that are run daily.  It is failing due to a cdt install problem.  Temporarily disabling since we are switching CD implementations.

Signed-off-by: emrekiciman <emrek@microsoft.com>
Signed-off-by: Emre Kiciman <emrek@microsoft.com>

* Update test_notebooks.py

removed spaces that were causing a formatting error

Signed-off-by: emrekiciman <emrek@microsoft.com>
Signed-off-by: Emre Kiciman <emrek@microsoft.com>

* added code for ignoring specified notebook tests

Signed-off-by: Emre Kiciman <emrek@microsoft.com>

Signed-off-by: emrekiciman <emrek@microsoft.com>
Signed-off-by: Emre Kiciman <emrek@microsoft.com>
2022-09-28 00:38:09 -07:00
Andres Morales db953a63aa
Functional api/identify effect (#640)
* Functional API: Refactor identify_effect

Signed-off-by: Andres Morales <andresmor@microsoft.com>

* addressing some early comments by Amit

Signed-off-by: Andres Morales <andresmor@microsoft.com>

* run format tool

Signed-off-by: Andres Morales <andresmor@microsoft.com>

* Address PR comments

Signed-off-by: Andres Morales <andresmor@microsoft.com>

* Imports as top level functions rename defaultidentifier

Signed-off-by: Andres Morales <andresmor@microsoft.com>

* Clear output of notebook

Signed-off-by: Andres Morales <andresmor@microsoft.com>

* Refactor identify_effect to functions, notebook updates

Signed-off-by: Andres Morales <andresmor@microsoft.com>

* Add type hints

Signed-off-by: Andres Morales <andresmor@microsoft.com>

Signed-off-by: Andres Morales <andresmor@microsoft.com>
2022-09-26 18:38:27 -07:00
Patrick Bloebaum 4d4df7a463 Make a gcm ICC and FCM unit test less flaky
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2022-09-26 06:06:53 -07:00
Chris Trevino 4bca322881
Use Poetry 1.2 (#634)
* poetry, ci updates

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* use docs group with the docs task

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* use darthtrevino fork of causalml to experiment with pyproject.toml

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* update poetry.lock

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* move pytest-x libraries to dev deps

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* update causalml dependency to use latest on uber's repo

Signed-off-by: Chris Trevino <darthtrevino@gmail.com>

* install pdv with pip to match dodiscover's usage

Signed-off-by: Chris Trevino <darthtrevino@gmail.com>

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>
Signed-off-by: Chris Trevino <darthtrevino@gmail.com>
2022-09-24 15:53:03 -07:00
emrekiciman 81fe5d9cbd
Update README.rst (#641)
* Update README.rst

Added direct link to https://github.com/py-why/dowhy/blob/main/docs/source/contributing/contributing-code.rst that has detailed instructions for code contribution steps

Signed-off-by: emrekiciman <emrek@microsoft.com>

* Update README.rst

fixed link formatting

Signed-off-by: emrekiciman <emrek@microsoft.com>

* Update README.rst

fixed link formatting

Signed-off-by: emrekiciman <emrek@microsoft.com>

* Update README.rst

removed duplicate explicit targets 'here'

Signed-off-by: emrekiciman <emrek@microsoft.com>

Signed-off-by: emrekiciman <emrek@microsoft.com>
2022-09-22 11:33:00 -07:00
Patrick Bloebaum c74b024a16 Make a gcm independence test less flaky
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2022-09-20 13:00:30 -07:00
Patrick Bloebaum d5742c8168 Fix a gcm unit test that was failing
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2022-09-20 11:40:05 -07:00
Patrick Bloebaum 57e349fabd Revise gcm FCM unit tests
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2022-09-19 16:18:53 -07:00
Patrick Bloebaum 2cdcf2e115 Fix flaky gcm test for anomaly scoring with multivariate inputs
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2022-09-19 16:18:37 -07:00
Patrick Bloebaum 0c46f6962d Smaller refactors in tests for auto and density estimator modules
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2022-09-19 13:24:27 -07:00
Patrick Bloebaum 8626a5bc2e Refactor distribution change unit tests
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2022-09-19 13:24:14 -07:00
Patrick Bloebaum 3e42bacb43 Refactor gcm divergence unit tests
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2022-09-19 13:23:58 -07:00
emrekiciman 93f1852b32 Update MAINTAINERS.md to add Chris Trevino
Signed-off-by: emrekiciman <emrek@microsoft.com>
2022-09-16 09:13:16 +02:00
Peter Goetz ad87aef3b7 Add MVG projects docs
As explained in https://github.com/github/MVG. This adds a MAINTAINERS and a GOVERNANCE file.

Signed-off-by: Peter Goetz <pego@amazon.com>
2022-09-16 09:13:16 +02:00
anusha0409 bb446c333f
Adding Non Linear Sensitivity Analysis based on partial R2 (#478)
* Adding Non Linear Sensitivity Analysis

Signed-off-by: anusha <anushaagarwal2000.com>

* Adding tests for non linear sensitivity analysis

Signed-off-by: anusha <anushaagarwal2000.com>

* Creating base class and derived class

Signed-off-by: anusha <anushaagarwal2000.com>

* making second stage regression linear for PLM

Signed-off-by: anusha <anushaagarwal2000.com>


* updates to the sensitivity algorithm

Signed-off-by: Amit Sharma <amit_sharma@live.com>

* support for specifying partial R2 or inferring from benchmarking; consistent R2 for alpha

Signed-off-by: Amit Sharma <amit_sharma@live.com>

* updated the notebook and renamed it

Signed-off-by: Amit Sharma <amit_sharma@live.com>

* separated out parameters in two

Signed-off-by: Amit Sharma <amit_sharma@live.com>

Signed-off-by: anusha <anushaagarwal2000.com>
Signed-off-by: Amit Sharma <amit_sharma@live.com>
Co-authored-by: anusha <anushaagarwal2000.com>
Co-authored-by: Amit Sharma <amit_sharma@live.com>
2022-09-16 09:27:25 +05:30
Peter Goetz 81841c697b Remove out-of-place LinkedIn link from installation instructions
Signed-off-by: Peter Goetz <pego@amazon.com>
2022-09-14 20:27:09 +02:00
Peter Goetz 16a0136f6b Add sphinx_copybutton to documentation generation
Signed-off-by: Peter Goetz <pego@amazon.com>
2022-09-07 08:54:18 +02:00
Amit Sharma d67da0e57e
Add support for controlled direct treatment effect (#619)
* adding controlled direct effect to identify step

Signed-off-by: Amit Sharma <amit_sharma@live.com>

* updated parameter name and added documentation

Signed-off-by: Amit Sharma <amit_sharma@live.com>
2022-09-02 14:07:56 +05:30
Chris Trevino 2f2463be42
CI: Split tests into groups to speed them up (#615)
* add initial test durations

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* add test split

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* mark slow tests as advanced

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* update .gitignore

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* run formatter

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* remove if: conditions from steps

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* mark some tests as slow

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* add nightly gh action

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* remove advanvced mark from propensity score stratification test

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* add test-advanced on-demand workflow

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* update advanced on-demand workflow

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* update advanced tests to check out correct branch and report on progress

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* add matrix strategy to test-advanced

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* use test splits for nightly tests

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* @pytest.mark -> @mark

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>
2022-09-01 15:51:03 -07:00
Michael Marien ead8d47102
Replace remaining print statements by appropriate levels of logging (#610)
Signed-off-by: Michael Marien <marien.mich@gmail.com>

Signed-off-by: Michael Marien <marien.mich@gmail.com>
2022-08-23 16:57:05 +05:30
allcontributors[bot] c07b1b0824
docs: add MichaelMarien as a contributor for doc (#614)
* docs: update CONTRIBUTING.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

* docs: update CONTRIBUTING.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Signed-off-by: Amit Sharma <amit_sharma@live.com>
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Amit Sharma <amit_sharma@live.com>
2022-08-22 11:37:36 +05:30
Michael Marien 8aea1fc123
Docs for contributing code (#606)
* Added documentation for getting started with local development and contributing code to DoWhy

* removed virtualenv instructions, corrected type and added more graphviz info

* added clarification on virtualenv and about testing single files

* added DCO clarification and reformat intendation for nicer list enumaration

* added information about updating Poetry dependencies

* added formatting instructions

* added format fixing instructions

Signed-off-by: Michael Marien <marien.mich@gmail.com>
Co-authored-by: Amit Sharma <amit_sharma@live.com>
2022-08-22 11:31:02 +05:30
allcontributors[bot] c3b9a7caf6
docs: add darthtrevino as a contributor for code (#613)
* docs: update CONTRIBUTING.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-08-22 10:21:04 +05:30
allcontributors[bot] f0d7aae0bf
docs: add bkowshik as a contributor for code (#612)
* docs: update CONTRIBUTING.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-08-22 10:19:11 +05:30
Bhargav Kowshik f3df080e54
Rename master branch to main branch along with fixing the Binder link (#585)
* Rename master branch to main

Signed-off-by: Bhargav Kowshik <bhargav.kowshik@gmail.com>

* fixed merge

* updated merge issues

Signed-off-by: Bhargav Kowshik <bhargav.kowshik@gmail.com>
Signed-off-by: Amit Sharma <amit_sharma@live.com>
Co-authored-by: Amit Sharma <amit_sharma@live.com>
2022-08-22 10:18:20 +05:30
Chris Trevino 341f255806
Add formatting check to CI (updated) (#608)
* update workflow to include formatting

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

* execute formatter

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>
2022-08-19 15:51:25 -07:00