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

1059 Коммитов

Автор SHA1 Сообщение Дата
allcontributors[bot] 1cef2ac070
docs: add victor5as as a contributor for code (#1189)
* docs: update CONTRIBUTING.md [skip ci]

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

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-05-21 10:54:26 -07:00
Víctor Quintas-Martínez 63dea3356e
Code for Multiply-Robust Causal Change Attribution (#1183)
Add distribution_change_robust method

Adding a new distribution change method that more robust and converges faster. However, it does not support all kind of set functions. Currently, it supports mean and variance attributions.

Based on the paper:

Quintas-Martinez, V., Bahadori, M. T., Santiago, E., Mu, J., Janzing, D., and Heckerman, D. Multiply-Robust Causal Change Attribution, Proceedings of the 41st International Conference on Machine Learning, Vienna, Austria. PMLR 235, 2024.

Signed-off-by: Víctor Quintas-Martínez <vquintas@mit.edu>
2024-05-21 10:35:35 -07:00
dependabot[bot] 3660325a18
Bump requests from 2.31.0 to 2.32.0 (#1187)
---
updated-dependencies:
- dependency-name: requests
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-21 07:31:24 -07:00
Harsh Sinha d2962dd186
Modify graphviz installation command (#1178)
Modify graphviz installation command in README.rst, contributing-code.rst, and install.rst. Solves https://github.com/py-why/dowhy/issues/1172

Signed-off-by: Harsh Sinha <harsh.sinha@pitt.edu>
2024-05-15 08:28:11 -07:00
dependabot[bot] 333c9a8afa
Bump werkzeug from 3.0.1 to 3.0.3 (#1174)
Bumps [werkzeug](https://github.com/pallets/werkzeug) from 3.0.1 to 3.0.3.
- [Release notes](https://github.com/pallets/werkzeug/releases)
- [Changelog](https://github.com/pallets/werkzeug/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/werkzeug/compare/3.0.1...3.0.3)

---
updated-dependencies:
- dependency-name: werkzeug
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06 18:34:51 -07:00
dependabot[bot] c7a3681a9c
Bump jinja2 from 3.1.3 to 3.1.4 (#1175)
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.3 to 3.1.4.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.3...3.1.4)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06 18:33:33 -07:00
dependabot[bot] 35ae6aaabe
Bump tqdm from 4.66.1 to 4.66.3 (#1173)
Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.66.1 to 4.66.3.
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](https://github.com/tqdm/tqdm/compare/v4.66.1...v4.66.3)

---
updated-dependencies:
- dependency-name: tqdm
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-04 22:15:17 +05:30
Lukas Heumos 517a9eb587
Use numpy tile instead of matrix (#1170)
Signed-off-by: zethson <lukas.heumos@posteo.net>
2024-05-04 22:14:39 +05:30
Rahul Shrestha a65d3d5c56 model name change
Signed-off-by: Rahul Shrestha <rahulshrestha0101@gmail.com>
2024-05-03 12:35:01 -07:00
allcontributors[bot] 2cd8e8147b
docs: add dw-610 as a contributor for code (#1166)
* docs: update CONTRIBUTING.md [skip ci]

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

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-04-22 21:37:14 +05:30
dependabot[bot] 7aa5b2bdce
Bump aiohttp from 3.9.2 to 3.9.4 (#1162)
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.9.2 to 3.9.4.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst)
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.9.2...v3.9.4)

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-18 23:18:38 -07:00
Amit Sharma 2c4734867c updated formatting
Signed-off-by: Amit Sharma <amit_sharma@live.com>
2024-04-15 07:01:10 -07:00
Amit Sharma 100a65cf89 fixed argument calling bug
Signed-off-by: Amit Sharma <amit_sharma@live.com>
2024-04-15 07:01:10 -07:00
Patrick Bloebaum f0ca30925e Add new statistical method to merge p-values
This uses an improved version of the "twice the average" rule following recent results from M. Gasparini, R. Wang, and A. Ramdas, *Combining exchangeable p-values*, arXiv 2404.03484, 2024.

This new method is now used by default when merging p-values. Accordingly, the quantile based method was renamed to be more consistent with the naming pattern.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-04-15 06:58:38 -07:00
dependabot[bot] c6c11933b6 Bump peaceiris/actions-gh-pages from 3 to 4
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3 to 4.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases)
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3...v4)

---
updated-dependencies:
- dependency-name: peaceiris/actions-gh-pages
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 06:57:44 -07:00
dependabot[bot] d33a22ff66 Bump idna from 3.6 to 3.7
Bumps [idna](https://github.com/kjd/idna) from 3.6 to 3.7.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
- [Commits](https://github.com/kjd/idna/compare/v3.6...v3.7)

---
updated-dependencies:
- dependency-name: idna
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-12 08:09:27 -07:00
Patrick Bloebaum bbf4c9b195 Adjust format based on new formatter version
The new black formatter version (24.3.0) requires new changes, which are addressed in this commit.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-04-12 08:07:21 -07:00
yogabonito 74e51c37d8
[DOC] tiny improvements (#1152)
Signed-off-by: yogabonito <yogabonito@users.noreply.github.com>
2024-04-07 01:31:21 -07:00
dependabot[bot] eb2396756e
Bump pillow from 10.2.0 to 10.3.0 (#1154)
Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.2.0 to 10.3.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/10.2.0...10.3.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-07 01:30:25 -07:00
drawlinson 65f3031bb1
Replace all occurrences of get Pandas' get_dummies() with skLearn OneHotEncoder (#1135)
* For consistency and avoidance of future issues, replace all occurrences of Pandas' get_dummies with skLearn's OneHotEncoder. Encoder lifespan: Reuses encoders for new estimate_effect() calls, and replaces existing encoders on CausalEstimator.fit(). Additional uses of get_dummies without side-effects or consistent encoding issues in do-Sampler Propensity Scores utilities also replaced for consistency.

Signed-off-by: DAVID RAWLINSON <dave@causalwizard.app>

* Add categorical encoding consistency tests for CausalEstimators. Fix bug in arg order for RegressionEstimator._do().

Signed-off-by: DAVID RAWLINSON <dave@causalwizard.app>

---------

Signed-off-by: DAVID RAWLINSON <dave@causalwizard.app>
Co-authored-by: DAVID RAWLINSON <dave@causalwizard.app>
2024-03-26 22:03:17 +05:30
Hongyu Lin dfbbbca369
Fix small typo in user guide (#1129)
Signed-off-by: Hongyu Lin <67950264+hon-gyu@users.noreply.github.com>
2024-02-09 01:43:21 -08:00
dependabot[bot] 931b0280da Bump aiohttp from 3.9.1 to 3.9.2
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.9.1 to 3.9.2.
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst)
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.9.1...v3.9.2)

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-30 07:48:40 -08:00
dependabot[bot] 46f429eaed Bump pillow from 10.1.0 to 10.2.0
Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.1.0 to 10.2.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/10.1.0...10.2.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-30 07:48:24 -08:00
dependabot[bot] 7b499b46f6 Bump jupyterlab from 4.0.9 to 4.0.11
Bumps [jupyterlab](https://github.com/jupyterlab/jupyterlab) from 4.0.9 to 4.0.11.
- [Release notes](https://github.com/jupyterlab/jupyterlab/releases)
- [Changelog](https://github.com/jupyterlab/jupyterlab/blob/@jupyterlab/lsp@4.0.11/CHANGELOG.md)
- [Commits](https://github.com/jupyterlab/jupyterlab/compare/@jupyterlab/lsp@4.0.9...@jupyterlab/lsp@4.0.11)

---
updated-dependencies:
- dependency-name: jupyterlab
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-30 07:48:14 -08:00
dependabot[bot] 86d7dcbe29 Bump notebook from 7.0.6 to 7.0.7
Bumps [notebook](https://github.com/jupyter/notebook) from 7.0.6 to 7.0.7.
- [Release notes](https://github.com/jupyter/notebook/releases)
- [Changelog](https://github.com/jupyter/notebook/blob/@jupyter-notebook/tree@7.0.7/CHANGELOG.md)
- [Commits](https://github.com/jupyter/notebook/compare/@jupyter-notebook/tree@7.0.6...@jupyter-notebook/tree@7.0.7)

---
updated-dependencies:
- dependency-name: notebook
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-30 07:47:46 -08:00
dependabot[bot] 01ad12aa35
Bump jupyter-lsp from 2.2.1 to 2.2.2 (#1137)
Bumps [jupyter-lsp](https://github.com/jupyter-lsp/jupyterlab-lsp) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/jupyter-lsp/jupyterlab-lsp/releases)
- [Changelog](https://github.com/jupyter-lsp/jupyterlab-lsp/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jupyter-lsp/jupyterlab-lsp/commits)

---
updated-dependencies:
- dependency-name: jupyter-lsp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-19 18:39:23 +05:30
Patrick Bloebaum df09897de5 Add nan check to kernel based independence test.
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-01-18 08:56:21 -08:00
dependabot[bot] 499019c286 Bump jinja2 from 3.1.2 to 3.1.3
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.2...3.1.3)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-16 09:05:24 -08:00
dependabot[bot] 526d9280be Bump abatilo/actions-poetry from 2.4.0 to 3.0.0
Bumps [abatilo/actions-poetry](https://github.com/abatilo/actions-poetry) from 2.4.0 to 3.0.0.
- [Release notes](https://github.com/abatilo/actions-poetry/releases)
- [Changelog](https://github.com/abatilo/actions-poetry/blob/master/.releaserc)
- [Commits](https://github.com/abatilo/actions-poetry/compare/v2.4.0...v3.0.0)

---
updated-dependencies:
- dependency-name: abatilo/actions-poetry
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-16 09:05:04 -08:00
Jinyoung 324c40fd8f
Update intro.rst (#1133)
Update intro.rst

fix link

Signed-off-by: Jinyoung <40735154+diligejy@users.noreply.github.com>
2024-01-15 13:43:42 +05:30
dependabot[bot] b329e8cc79 Bump abatilo/actions-poetry from 2.3.0 to 2.4.0
Bumps [abatilo/actions-poetry](https://github.com/abatilo/actions-poetry) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/abatilo/actions-poetry/releases)
- [Changelog](https://github.com/abatilo/actions-poetry/blob/master/.releaserc)
- [Commits](https://github.com/abatilo/actions-poetry/compare/v2.3.0...v2.4.0)

---
updated-dependencies:
- dependency-name: abatilo/actions-poetry
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-08 07:23:14 -08:00
Amit Sharma e0d0038039
Fix double counting in two sided bootstrap confidence intervals (#1126)
* fixed double counting in bootstrap conf interval

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

* fixed double counting in bootstrap conf interval

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

* formatted correctly

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

---------

Signed-off-by: Amit Sharma <amit_sharma@live.com>
2023-12-22 08:16:00 -08:00
Priyadutt 0c47c45eb3
Added documentation for creating causal model out of equations feature (#1124)
* added documentation for creating causal model out of equations feature

Signed-off-by: priyadutt <bhattpriyadutt@gmail.com>

* Giving only positive values to the log function

Signed-off-by: priyadutt <bhattpriyadutt@gmail.com>

---------

Signed-off-by: priyadutt <bhattpriyadutt@gmail.com>
2023-12-21 21:57:48 -08:00
Patrick Bloebaum aa222575c1 Update some versions and poetry.lock
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2023-12-21 10:37:10 -07:00
drawlinson 63c66fe3a1
Fix bug with consistency of RegressionEstimator one-hot encoding (#1112)
* Fix bug with consistency of RegressionEstimator one-hot encoding by switching from pandas get_dummies to sklearn OneHotEncoder.

Signed-off-by: DAVID RAWLINSON <dave@causalwizard.app>

* Add unit tests for one_hot_encode util function. Verify equivalence and consistency on new data.

Signed-off-by: DAVID RAWLINSON <dave@causalwizard.app>

---------

Signed-off-by: DAVID RAWLINSON <dave@causalwizard.app>
Co-authored-by: DAVID RAWLINSON <dave@causalwizard.app>
2023-12-21 21:11:14 +05:30
drawlinson 891105ac59
Add accessor and comments about CausalModel's CausalEstimator cache. (#1113)
* Add an accessor and comments explaining the expected lifecycle and use of CausalEstimator objects stored in the CausalModel._estimator_cache dict. Accessor function gains test coverage and slightly simplifies logic via use in CausalModel.estimate_effect().

Signed-off-by: DAVID RAWLINSON <dave@causalwizard.app>

* Add unit test for CausalModel.get_estimator() and CausalEstimate.estimator, both CausalEstimator object references.

Signed-off-by: DAVID RAWLINSON <dave@causalwizard.app>

---------

Signed-off-by: DAVID RAWLINSON <dave@causalwizard.app>
Co-authored-by: DAVID RAWLINSON <dave@causalwizard.app>
2023-12-21 20:08:21 +05:30
Patrick Bloebaum 36fd02c57a Fix missing import for unit test
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2023-12-11 13:22:53 -08:00
Patrick Bloebaum 72986a859d Fix bug in networkx plot function with 0 error strenghts
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2023-12-11 10:56:00 -08:00
dependabot[bot] 4f317345dc Bump actions/setup-python from 4 to 5
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 10:55:37 -08:00
Patrick Bloebaum 1f9ee6be46 Rename classes in test folder
The TestEstimator and TestRefuter were falsely interpreted as unit test classes due to their "Test" prefix.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2023-12-11 10:52:07 -08:00
Patrick Bloebaum 711e6ba902 Fix issue with kernel_based independence tests with object types
The KCI implementation does require the numpy type to be a numerical type explicitly. This commit converts the dtype to 'float' to ensure this.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2023-12-11 09:53:18 -08:00
Patrick Bloebaum 20cfd23f4f Potential fix for timeout errors in unit tests
It seems there is a problem with one of the unit tests that explicitly rely on timeouts. Removing this test to avoid these issues in builds.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2023-12-11 09:44:36 -08:00
dependabot[bot] 4bb4a43fb8 Bump actions/stale from 8 to 9
Bumps [actions/stale](https://github.com/actions/stale) from 8 to 9.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v8...v9)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 07:06:24 -08:00
dependabot[bot] 9c872a6ad2 Bump pmorelli92/github-container-registry-build-push from 2.1.0 to 2.2.1
Bumps [pmorelli92/github-container-registry-build-push](https://github.com/pmorelli92/github-container-registry-build-push) from 2.1.0 to 2.2.1.
- [Release notes](https://github.com/pmorelli92/github-container-registry-build-push/releases)
- [Commits](https://github.com/pmorelli92/github-container-registry-build-push/compare/2.1.0...2.2.1)

---
updated-dependencies:
- dependency-name: pmorelli92/github-container-registry-build-push
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 06:59:38 -08:00
Priyadutt df053f4eda
fixed a bug where wrong node is identified as unknown model (#1108)
Fixed a bug where wrong node is identified as unknown model

---------

Signed-off-by: priyadutt <bhattpriyadutt@gmail.com>
2023-12-08 11:13:35 -08:00
priyadutt 6038f4d886 equation to graph implementation with test cases added.
Signed-off-by: priyadutt <bhattpriyadutt@gmail.com>
2023-12-06 13:23:12 -08:00
Amit Sharma e66ed36f1b
Fix errors in README and add a test to avoid such errors in the future (#1103)
* fixing pypi readme errors and adding a test

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

* installing dynamic versioning

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

---------

Signed-off-by: Amit Sharma <amit_sharma@live.com>
2023-12-06 13:39:39 +05:30
Amit Sharma e7bd2ad84f
Fixing python publish workflow to run after version tag is created (#1100)
fixed workflow to include tags and fixed pyproject to output the latest tag version

Signed-off-by: Amit Sharma <amit_sharma@live.com>
2023-12-05 23:00:52 +05:30
Patrick Blöbaum 75723e3b6c
Fix formatting issue in readme (#1099)
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2023-12-05 22:30:16 +05:30
Amit Sharma 56d3fc27f1 updated python publish workflow to support pypi 2fa
Signed-off-by: Amit Sharma <amit_sharma@live.com>
2023-12-04 10:16:36 -08:00