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

1056 Коммитов

Автор SHA1 Сообщение Дата
Patrick Bloebaum 75ffc4a4e5 Fix missing notebooks
- Removed certain notebooks frome exclusion list
- Fixed issue where the image for the counterfactual fairness notebook was not shown

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-11-05 08:27:38 -08:00
laurenzohnemueller 9b5773ccb0 fix typo in docs
Signed-off-by: laurenzohnemueller <laurenz.ohnemueller@goflink.com>
2024-11-04 08:11:55 -08:00
Patrick Bloebaum 4247943f80 Change np.math for math for compatibility
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-10-29 07:34:43 -07:00
Patrick Bloebaum 083a32b209 Fix issue in KL divergence estimator with non-unique values
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-10-29 07:34:24 -07:00
dependabot[bot] ecc7347012 Bump abatilo/actions-poetry from 3.0.0 to 3.0.1
Bumps [abatilo/actions-poetry](https://github.com/abatilo/actions-poetry) from 3.0.0 to 3.0.1.
- [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/v3.0.0...v3.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-28 08:11:37 -07:00
Ahmet Kapkic e79d01280b Update networkx_plotting.py
Fixing the error message in self-cycle cases.

Signed-off-by: Ahmet Kapkic <ahmetkapkic@gmail.com>
2024-10-25 07:23:59 -07:00
Patrick Bloebaum 07587d03d4 Change order of navigation entries in documentation
Changing from
"Getting Starte" - "User Guide" - "Examples" - "dowhy package" - "Contributing" - "Release notes" - "Citing this package"
to
"Getting Starte" - "User Guide" - "Examples" - "Citing this package" - "Contributing" - "Dowhy package" "Release notes"

Here, the last two entries are now 'hidden' under a "more" tab, i.e., putting the more important information to the front. Source references might be easier to find via the search function.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-10-25 07:22:53 -07:00
allcontributors[bot] 832f485e3a
docs: add GregVS as a contributor for code (#1265)
* 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-10-21 17:36:18 -07:00
Gregory Saldanha b17f2c3a54 Fix incorrect signed noise terms for DiscreteAdditiveNoiseModel
Signed-off-by: Gregory Saldanha <gsaldanha2@gmail.com>
2024-10-21 17:35:46 -07:00
Patrick Bloebaum 4bf7d30fe0 Update dependencies, Python 3.12 compatibility and CI workflow
- Update python dependencies
- Add compatibility with Python 3.12
- Modify CI workflow to address doc building issues
- Change time until an issue becomes inactive

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-10-19 16:23:20 -07:00
allcontributors[bot] 9eebc02835
docs: add kmhj13 as a contributor for code (#1263)
* 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-10-17 10:24:16 +05:30
kmhj13 1db135ed8d
removed cell outputs (#1245)
Co-authored-by: Kriti Mahajan <kritimhj@amazon.com>
2024-10-17 10:23:48 +05:30
allcontributors[bot] 9cdde0e3be
docs: add Yangliu-SY as a contributor for code (#1262)
* 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-10-09 09:12:32 -07:00
allcontributors[bot] b8c483d61c
docs: add nparent1 as a contributor for code (#1261)
* 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-10-09 09:10:35 -07:00
Nick Parente a5b56fb53a
Add support for non-singleton treatment/outcome sets to "has_directed_path" method (#1247)
* Modifies has_directed_path and adds test

---------

Signed-off-by: Nicholas Parente <parentenickj@gmail.com>
2024-10-09 09:10:00 -07:00
Yangliu-SY 2f35b62246 Fix issue #1254: pass the variable 'categorical' instead of the method 'is_categorical'
Based on the context of the codes, the variable 'categorical' should be passed in the function call of '_estimate_conditional_expectations' instead of the method 'is_categorical'

Signed-off-by: Yangliu-SY <144334404+Yangliu-SY@users.noreply.github.com>
2024-10-03 07:24:22 -07:00
dependabot[bot] a2f6d04540 Bump aiohttp from 3.9.4 to 3.10.2
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.9.4 to 3.10.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.4...v3.10.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-03 07:15:04 -07:00
dependabot[bot] 8c54af4baa Bump notebook from 7.0.7 to 7.2.2
Bumps [notebook](https://github.com/jupyter/notebook) from 7.0.7 to 7.2.2.
- [Release notes](https://github.com/jupyter/notebook/releases)
- [Changelog](https://github.com/jupyter/notebook/blob/@jupyter-notebook/tree@7.2.2/CHANGELOG.md)
- [Commits](https://github.com/jupyter/notebook/compare/@jupyter-notebook/tree@7.0.7...@jupyter-notebook/tree@7.2.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-03 07:14:17 -07:00
Rahul Shrestha 4c3a08322d
Fix incorrect edges in `adjacency_matrix_to_graph` (#1202)
* Fix matrix bug

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

* Fixed graphviz import

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

---------

Signed-off-by: rahulbshrestha <rahulshrestha0101@gmail.com>
2024-08-04 10:35:42 +05:30
Rahul Shrestha daf5f947f9
Add examples from "Causal Inference and Discovery in Python" to tests (#1165)
* Add test file

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

added chapter 6

Fix

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

Add chapter 8

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

Fix formatting issue with linter

Add references

* Added reference message

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

* Added econml requirement

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

* removed econml from imports

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

---------

Signed-off-by: rahulbshrestha <rahulshrestha0101@gmail.com>
Signed-off-by: Amit Sharma <amit_sharma@live.com>
Co-authored-by: Amit Sharma <amit_sharma@live.com>
2024-08-04 10:07:55 +05:30
Ashutosh Srivastava becbf7f502
Effect estimation over timeseries data (#1218)
* Library functions for temporal causal functionality

* shifting plotter function

* printing graph: best practices

* added docstrings

* moved datasets

* updated tutorial notebook

* sphinx documentation

* updated shifting columns with 0,1,..,max_lag

* support for dot format

* tigramite support

* updated filter to be a hidden function

* black and isort utils

* black and isort timeseries

* updated notebook text

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

* integer range fix

* correction in timestamp : notebook text

* time lagged causal estimation

* removed cell outputs

* find ancestors

* include ancestors in notebook

* formatting changes

* comments : notebook

* multiple time lags : csv graph'

* multiple time lags

* unrolled graph using bfs

* cleanup of functions

* removed find parents and ancestors

* tests for causal graph creation

* tests for adding lagged edges

* tests for shifting columns


* tigramite dependency added

---------

Signed-off-by: Amit Sharma <amit_sharma@live.com>
Co-authored-by: Amit Sharma <amit_sharma@live.com>
2024-08-03 22:54:02 +05:30
Patrick Bloebaum e783e37db0 Update paper references
Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-07-30 07:30:27 -07:00
Chris Trevino a20909499b
Update docsite publish steps (#1235)
* limit doc pubilcation

---------

Signed-off-by: Chris Trevino <chtrevin@microsoft.com>
2024-07-30 07:27:50 -07:00
Chris Trevino 232e123dfa
list out docsite contents pre-publish (#1234)
Signed-off-by: Chris Trevino <chtrevin@microsoft.com>
2024-07-29 16:43:58 -07:00
kmhj13 bdaf04d808
Counterfactual fairness (#1203)
Add example notebook for counterfactual fairness using GCM

Following the paper Estimates Counterfactual Fairness following Kusner et al. (2018)

---------

Signed-off-by: Kriti Mahajan <kritimhj@amazon.com>
2024-07-29 08:55:12 -07:00
Patrick Bloebaum 35408a1e94 Change OneHotEncoder parameter from "sparse" to "sparse_output"
The "sparse" parameter is deprecated and was renamed to "sparse_output".

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-07-29 08:51:36 -07:00
Patrick Bloebaum 6a9a229bb5 Change default parameters for Shapley estimator
This should significantly speed up some calculations for larger graphs. In this regard, also increased the default samples for the anomaly attribution to balance the reduced number of Shapley run.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-07-29 08:51:20 -07:00
Patrick Bloebaum 9b9d6093fb Change default parameters of ICC for speedup
Taking less samples to estimate ICC. This might lead to higher variance in the estimate, but speeds it up by multiple factors.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-07-29 08:51:06 -07:00
Patrick Bloebaum 474c5844ec Remove existing causal mechanisms when creating GCM
Before, when a causal graph had causal mechanisms assigned, they were also used when creating a new GCM object based on it. Now, they are removed (from a copied version of the graph).

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-07-29 08:50:52 -07:00
Patrick Bloebaum 57fd684450 Add new method to merge p-values using FDR
The method merges p-values by taking the minimum of the adjusted p-values. This then represents a p-value for a global hypothesis.

Signed-off-by: Patrick Bloebaum <bloebp@amazon.com>
2024-07-29 08:50:34 -07:00
dependabot[bot] cb82358aba
Bump setuptools from 69.0.2 to 70.0.0 (#1226)
Bumps [setuptools](https://github.com/pypa/setuptools) from 69.0.2 to 70.0.0.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v69.0.2...v70.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-23 22:31:43 +05:30
dependabot[bot] 74843525f9
Bump zipp from 3.17.0 to 3.19.1 (#1225)
Bumps [zipp](https://github.com/jaraco/zipp) from 3.17.0 to 3.19.1.
- [Release notes](https://github.com/jaraco/zipp/releases)
- [Changelog](https://github.com/jaraco/zipp/blob/main/NEWS.rst)
- [Commits](https://github.com/jaraco/zipp/compare/v3.17.0...v3.19.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-10 00:03:20 -07:00
dependabot[bot] 8fa250e38a
Bump certifi from 2023.11.17 to 2024.7.4 (#1224)
Bumps [certifi](https://github.com/certifi/python-certifi) from 2023.11.17 to 2024.7.4.
- [Commits](https://github.com/certifi/python-certifi/compare/2023.11.17...2024.07.04)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08 00:06:35 -07:00
yogabonito c596b1ff2f docs: small fix in user guide
Signed-off-by: yogabonito <yogabonito@users.noreply.github.com>
2024-07-01 08:27:04 -07:00
dependabot[bot] 0fa9a2e15c Bump ws from 8.11.0 to 8.17.1 in /docs/version_patcher
Bumps [ws](https://github.com/websockets/ws) from 8.11.0 to 8.17.1.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/8.11.0...8.17.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 18:22:07 -07:00
dependabot[bot] 7192f0eb87 Bump urllib3 from 2.1.0 to 2.2.2
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.1.0 to 2.2.2.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.1.0...2.2.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 18:21:47 -07:00
dependabot[bot] 512d1b0ff1 Bump tornado from 6.4 to 6.4.1
Bumps [tornado](https://github.com/tornadoweb/tornado) from 6.4 to 6.4.1.
- [Changelog](https://github.com/tornadoweb/tornado/blob/master/docs/releases.rst)
- [Commits](https://github.com/tornadoweb/tornado/compare/v6.4.0...v6.4.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-14 07:14:59 -07:00
allcontributors[bot] 7c867f8465
docs: add yogabonito as a contributor for doc (#1205)
* 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-13 13:06:48 +05:30
yogabonito 6f4ff22353
[DOC] fix typo (#1204)
* [DOC] fix typo

Signed-off-by: yogabonito <yogabonito@users.noreply.github.com>

* [DOC] small fix

The text first informs that PC, FCI, and GES will be considered, but instead of FCI the notebook shows LiNGAM.

Signed-off-by: yogabonito <yogabonito@users.noreply.github.com>

---------

Signed-off-by: yogabonito <yogabonito@users.noreply.github.com>
2024-06-13 13:06:19 +05:30
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