|
1 | 1 | .. _edge_constraints: |
2 | 2 |
|
3 | | -Edge Constraints |
| 3 | +Edge constraints |
4 | 4 | --------------------------------------- |
5 | 5 |
|
6 | 6 | Benchpress allows users to incorporate edge constraints to guide structure learning algorithms in several packages: |
7 | | -**pcalg**, **bnlearn**, **tetrad**, **gobnilp**, and **bidag**. These constraints enable the inclusion of prior knowledge to refine |
| 7 | +**pcalg**, **mvpc**, **bnlearn**, **tetrad**, **gobnilp**, and **bidag**. These constraints enable the inclusion of prior knowledge to refine |
8 | 8 | the search space of causal graphs, improving the reliability of the inferred relationships. Users can specify **forbidden or |
9 | 9 | required edges**, **tiers for temporal ordering**, and **group-based constraints**. |
10 | 10 |
|
11 | 11 | The edge constraints should be defined in a JSON file located within the ``resources/constraints`` folder. |
12 | 12 |
|
13 | 13 | .. rubric:: Supported Constraints |
14 | 14 |
|
15 | | -+--------------------+---------------------+---------------------+--------------------+----------------------+-----------------------+ |
16 | | -| **Package** | **forbidden_edges** | **required_edges** | **tiers** | **forbidden_groups** | **required_groups** | |
17 | | -+====================+=====================+=====================+====================+======================+=======================+ |
18 | | -| pcalg | X | X | N/A | N/A | N/A | |
19 | | -+--------------------+---------------------+---------------------+--------------------+----------------------+-----------------------+ |
20 | | -| bnlearn | X | X | X | X | X | |
21 | | -+--------------------+---------------------+---------------------+--------------------+----------------------+-----------------------+ |
22 | | -| tetrad | X | X | X | X | X | |
23 | | -+--------------------+---------------------+---------------------+--------------------+----------------------+-----------------------+ |
24 | | -| gobnilp | X | X | X | X | X | |
25 | | -+--------------------+---------------------+---------------------+--------------------+----------------------+-----------------------+ |
26 | | -| bidag | X | N/A | N/A | X | N/A | |
27 | | -+--------------------+---------------------+---------------------+--------------------+----------------------+-----------------------+ |
| 15 | ++-------------+---------------------+--------------------+-----------+----------------------+---------------------+ |
| 16 | +| **Package** | **forbidden_edges** | **required_edges** | **tiers** | **forbidden_groups** | **required_groups** | |
| 17 | ++=============+=====================+====================+===========+======================+=====================+ |
| 18 | +| mvpc | X | X | N/A | N/A | N/A | |
| 19 | ++-------------+---------------------+--------------------+-----------+----------------------+---------------------+ |
| 20 | +| pcalg | X | X | N/A | N/A | N/A | |
| 21 | ++-------------+---------------------+--------------------+-----------+----------------------+---------------------+ |
| 22 | +| bnlearn | X | X | X | X | X | |
| 23 | ++-------------+---------------------+--------------------+-----------+----------------------+---------------------+ |
| 24 | +| tetrad | X | X | X | X | X | |
| 25 | ++-------------+---------------------+--------------------+-----------+----------------------+---------------------+ |
| 26 | +| gobnilp | X | X | X | X | X | |
| 27 | ++-------------+---------------------+--------------------+-----------+----------------------+---------------------+ |
| 28 | +| bidag | X | N/A | N/A | X | N/A | |
| 29 | ++-------------+---------------------+--------------------+-----------+----------------------+---------------------+ |
28 | 30 |
|
29 | 31 | .. rubric:: Description |
30 | 32 |
|
31 | 33 | - ``forbidden_edges``: A list of directed edges that are explicitly prohibited from existing between specific nodes. Each edge is defined as a pair of nodes, where the first node cannot directly cause the second node. |
32 | 34 | - ``required_edges``: A list of directed edges that are enforced between specific nodes. Each edge is defined as a pair of nodes, where the first node must directly cause the second node. |
33 | 35 |
|
34 | | - - *Note: For algorithms in the* **pcalg** *package, the above attributes only specify the presence or absence of edges and do not control their directionality.* |
| 36 | + - *Note: For algorithms in the* **pcalg** and **mvpc** *package, the above attributes only specify the presence or absence of edges and do not control their directionality.* |
35 | 37 | - ``tiers``: Defines a temporal ordering of nodes across multiple levels (or) tiers. Nodes in one tier are constrained from causing nodes in any of the preceding tiers. |
36 | 38 | - ``tier_settings``: |
37 | 39 |
|
|
0 commit comments