You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,7 +138,7 @@ We use [Sphinx](https://www.sphinx-doc.org/en/master/index.html) to build our AP
138
138
of public classes and methods. All docstrings should adhere to the [Numpy styling convention](https://www.sphinx-doc.org/en/master/usage/extensions/example_numpy.html).
139
139
140
140
### Testing Changes Locally With Poetry
141
-
With poetry installed, we have included a few convenience functions to check your code. These checks must pass and will be checked by the PR's continuous integration services. You can install the various different developer dependencies with poetry:
141
+
With poetry installed, we have included a few convenience functions to check your code. **These checks must pass** and will be checked by the PR's continuous integration services. You can install the various different developer dependencies with poetry:
pywhy-graphs is a Python graph library that extends `MixedEdgeGraph` in [networkx](https://github.com/networkx/networkx) to implement a light-weight API for causal graphical structures.
9
+
pywhy-graphs is a Python graph library that extends [networkx](https://github.com/networkx/networkx)with the notion of a `MixedEdgeGraph`to implement a light-weight API for causal graphical structures that contain mixed-edges and contain causal graph traversal algorithms.
10
10
11
11
Note: The API is subject to change without deprecation cycles due to the current work-in-progress `MixedEdgeGraph` class in networkx. For more information, follow the PR at https://github.com/networkx/networkx/pull/5947
12
12
@@ -17,7 +17,15 @@ Representation of causal graphical models in Python are severely lacking.
17
17
PyWhy-Graphs implements a graphical API layer for ADMG, CPDAG and PAG. For causal DAGs, we recommend using the `networkx.DiGraph` class and
18
18
ensuring acylicity via `networkx.is_directed_acyclic_graph` function.
19
19
20
-
Existing packages that aim to represent causal graphs either break from the networkX API, or only implement a subset of the relevant causal graphs. By keeping in-line with the robust NetworkX API, we aim to ensure a consistent user experience and a gentle introduction to causal graphical models.
20
+
Existing packages that aim to represent causal graphs either break from the networkX API, or only implement a subset of the relevant causal graphs. By keeping in-line with the robust NetworkX API, we aim to ensure a consistent user experience and a gentle introduction to causal graphical models. A `MixedEdgeGraph` instance is a composition of networkx graphs and has a similar API, with the additional notion of an "edge type", which specifies what edge type subgraph any function should operate over. For example:
21
+
22
+
```Python
23
+
# adds a directed edge from x to y
24
+
G.add_edge('x', 'y', edge_type='directed')
25
+
26
+
# adds a bidirected edge from x to y
27
+
G.add_edge('x', 'y', edge_type='bidirected')
28
+
```
21
29
22
30
Moreover, sampling from causal models is non-trivial, but a requirement for benchmarking many causal algorithms in discovery, ID, estimation and more. We aim to provide simulation modules that are easily connected with causal graphs to provide a simple robust API for modeling causal graphs and then simulating data.
23
31
@@ -29,17 +37,19 @@ Or see [stable version documentation](https://py-why.github.io/pywhy-graphs/stab
29
37
30
38
# Installation
31
39
32
-
Installation is best done via `pip` or `conda`. For developers, they can also install from source using `pip`. See [installation page](TBD) for full details.
40
+
Installation is best done via `pip` or `conda`. For developers, they can also install from source using `pip`. See [installation page](https://py-why.github.io/pywhy-graphs/dev/installation.html) for full details.
33
41
34
42
## Dependencies
35
43
36
-
Minimally, pywhy-graphs requires:
44
+
We aim to provide a very light-weight dependency structure. Minimally, pywhy-graphs requires:
37
45
38
46
* Python (>=3.8)
39
47
* numpy
40
48
* scipy
41
49
* networkx
42
50
51
+
Additional functionality may be required when running unit-tests and documentation.
52
+
43
53
## User Installation
44
54
45
55
If you already have a working installation of numpy, scipy and networkx, the easiest way to install pywhy-graphs is using `pip`:
@@ -58,3 +68,9 @@ To install the package from github, clone the repository and then `cd` into the
Pywhy-Graphs is always looking for new contributors to help make the package better, whether it is algorithms, documentation, examples of graph usage, and more! Contributing to Pywhy-Graphs will be rewarding because you will contribute to a much needed package for causal inference.
75
+
76
+
See our [contributing guide](https://github.com/py-why/pywhy-graphs/CONTRIBUTING.md) for more details.
Copy file name to clipboardExpand all lines: docs/whats_new/v0.1.rst
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,8 @@ Changelog
39
39
- |Feature| Add :class:`pywhy_graphs.networkx.MixedEdgeGraph` for mixed-edge graphs, by `Adam Li`_ (:pr:`29`)
40
40
- |MajorFeature| Implement a series of graph classes for time-series graphs, such as ``pywhy_graphs.classes.timeseries.StationaryTimeSeriesMixedEdgeGraph``, by `Adam Li`_ (:pr:`21`)
41
41
- |MajorFeature| Implement a series of graph classes for modeling interventions, such as :class:`pywhy_graphs.AugmentedGraph`, by `Adam Li`_ (:pr:`49`)
42
+
- |Feature| Implement export/import functions to go to/from pywhy-graphs to causallearn and to/from pywhy-graphs to numpy, by `Adam Li`_ (:pr:`51`)
43
+
- |Feature| Implement export/import functions to go to/from pywhy-graphs to pcalg and tetrad, by `Adam Li`_ (:pr:`60`)
0 commit comments