|
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | +:og:description: Based on the C++ aGrUM library, it provides a high-level interface to the C++ part of aGrUM allowing to create, manage and perform efficient computations with Bayesian networks and others probabilistic graphical models : Markov random fields (MRF), influence diagrams (ID) and LIMIDs, credal networks (CN), dynamic BN (dBN), probabilistic relational models (PRM). |
| 5 | +:og:image:alt: Benchpress logo |
| 6 | +:og:sitename: Benchpress causal discovery platform |
| 7 | +:og:title: PyAgrum (pyagrum) |
| 8 | + |
| 9 | +.. meta:: |
| 10 | + :title: PyAgrum (pyagrum) |
| 11 | + :description: Based on the C++ aGrUM library, it provides a high-level interface to the C++ part of aGrUM allowing to create, manage and perform efficient computations with Bayesian networks and others probabilistic graphical models : Markov random fields (MRF), influence diagrams (ID) and LIMIDs, credal networks (CN), dynamic BN (dBN), probabilistic relational models (PRM). |
| 12 | + |
| 13 | + |
| 14 | +.. _pyagrum: |
| 15 | + |
| 16 | +PyAgrum (pyagrum) |
| 17 | +****************** |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | +.. list-table:: |
| 22 | + |
| 23 | + * - Module name |
| 24 | + - `pyagrum <https://github.com/felixleopoldo/benchpress/tree/master/workflow/rules/structure_learning_algorithms/pyagrum>`__ |
| 25 | + * - Package |
| 26 | + - `pyagrum <https://pyagrum.readthedocs.io/en/latest/>`__ |
| 27 | + * - Version |
| 28 | + - 1.14.0 |
| 29 | + * - Language |
| 30 | + - `Python <https://www.python.org/>`__ |
| 31 | + * - Docs |
| 32 | + - `here <https://pyagrum.readthedocs.io/en/latest/notebooks/31-Learning_structuralLearning.html>`__ |
| 33 | + * - Paper |
| 34 | + - :footcite:t:`10.1371/journal.pcbi.1005662` |
| 35 | + * - Graph type |
| 36 | + - `DAG <https://en.wikipedia.org/wiki/Directed_acyclic_graph>`__ |
| 37 | + * - MCMC |
| 38 | + - No |
| 39 | + * - Edge constraints |
| 40 | + - No |
| 41 | + * - Data type |
| 42 | + - B |
| 43 | + * - Data missingness |
| 44 | + - |
| 45 | + * - Intervention type |
| 46 | + - |
| 47 | + * - Docker |
| 48 | + - `bpimages/pyagrum:1.14.0 <https://hub.docker.com/r/bpimages/pyagrum/tags>`__ |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | +PyAgrum |
| 54 | +----------- |
| 55 | + |
| 56 | + |
| 57 | +pyAgrum is a scientific C++ and Python library dedicated to Bayesian networks (BN) and other Probabilistic Graphical Models. Based on the C++ aGrUM library, it provides a high-level interface to the C++ part of aGrUM allowing to create, manage and perform efficient computations with Bayesian networks and others probabilistic graphical models : Markov random fields (MRF), influence diagrams (ID) and LIMIDs, credal networks (CN), dynamic BN (dBN), probabilistic relational models (PRM). |
| 58 | + |
| 59 | + |
| 60 | +.. rubric:: Example |
| 61 | + |
| 62 | +Config file: `config.json <https://github.com/felixleopoldo/benchpress/blob/master/workflow/rules/structure_learning_algorithms/pyagrum/config.json>`_ |
| 63 | + |
| 64 | +Command: |
| 65 | + |
| 66 | +.. code:: bash |
| 67 | +
|
| 68 | + snakemake --cores all --use-singularity --configfile workflow/rules/structure_learning_algorithms/pyagrum/config.json |
| 69 | +
|
| 70 | +The following figure shows FP/P vs. TP/P for pattern graphs based on 5 datsets corresponding to 5 realisations of a 80-variables random binary Bayesian network, with an average indegree of 4. |
| 71 | + |
| 72 | + |
| 73 | +.. _pyagrumplot: |
| 74 | + |
| 75 | +.. figure:: ../../../workflow/rules/structure_learning_algorithms/pyagrum/pattern.png |
| 76 | + :width: 320 |
| 77 | + :alt: pyAgrum FP/P vs. TP/P example |
| 78 | + :align: center |
| 79 | + |
| 80 | + FP/P vs. TP/P. for pattern graphs |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | +.. rubric:: Example JSON |
| 87 | + |
| 88 | + |
| 89 | +.. code-block:: json |
| 90 | +
|
| 91 | +
|
| 92 | + [ |
| 93 | + { |
| 94 | + "id": "pyagrum", |
| 95 | + "useMDLCorrection": true, |
| 96 | + "useSmoothingPrior": [ |
| 97 | + true, |
| 98 | + false |
| 99 | + ], |
| 100 | + "timeout": null |
| 101 | + } |
| 102 | + ] |
| 103 | +
|
| 104 | +.. footbibliography:: |
| 105 | + |
0 commit comments