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

1017 Коммитов

Автор SHA1 Сообщение Дата
Jon Cowie ec9ffca5ba Fix typos, 'Falsificaton' -> 'Falsification'
Signed-off-by: Jon Cowie <jonlives@gmail.com>
2024-06-05 08:43:43 -07:00
Patrick Bloebaum fa1e7fcedb Add RankBasedAnomalyScorer as an anomaly scorer
This is very closely related to the RescaledMedianCDFQuantileScorer but a statistically more well-defined approach. However, it is also slightly more conservative for small sample sizes.
Furthermore, it changes the way equal samples are counted in MedianCDFQuantileScorer by also including the test sample itself. This prevents a p-value of 0.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-06-04 08:11:40 -07:00
allcontributors[bot] e483c8bb67
docs: add rahulbshrestha as a contributor for code (#1195)
* 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-06-04 15:51:12 +05:30
Rahul Shrestha 72e3ba055e
Vectorize operations for propensity score matching (#1179)
* Add vector operations

Added todo comment

Signed-off-by: Rahul Shrestha <rahulshrestha0101@gmail.com>

formatting fix

Signed-off-by: Rahul Shrestha <rahulshrestha0101@gmail.com>

bug fix with string name

Signed-off-by: rahulbshrestha <rahulshrestha0101@gmail.com>

* Vectorize remaining list

Signed-off-by: rahulbshrestha <rahulshrestha0101@gmail.com>

---------

Signed-off-by: rahulbshrestha <rahulshrestha0101@gmail.com>
2024-06-04 15:50:40 +05:30
Patrick Blöbaum 5d8fdd0992
Add a modified version of the auto MPG dataset (#1190)
Before, we were loading it directly from the UCI dataset repository. However, this cause connection issues and build fails. The dataset is now added directly with its respective license.

Further, removed the output of the causal discovery example notebook to ensure that it gets compiled while building.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-06-04 15:36:59 +05:30
Patrick Bloebaum 62ea326372 Replacing numpy repmat with tile
NumPy matlib has been deprecated. Replacing the usage accordingly.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-05-29 08:31:32 -07:00
Patrick Bloebaum 38aee63904 Small correction of average p-value merger
Before, a single p-value still got adjusted using the 2 * ... formula, which led to an unnecessary adjustment.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-05-29 08:31:18 -07:00
Christoph ff068cc497
Update dowhy_causal_discovery_example.ipynb (#1186)
fix variable name for sachs data set

Signed-off-by: Christoph <krz@users.noreply.github.com>
2024-05-22 11:28:12 -07:00
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