pyAgrum-nightly 2.1.1.9.dev202506061747485979__cp310-abi3-manylinux2014_aarch64.whl → 2.3.1.9.dev202601031765915415__cp310-abi3-manylinux2014_aarch64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. pyagrum/__init__.py +6 -2
  2. pyagrum/_pyagrum.so +0 -0
  3. pyagrum/bnmixture/BNMInference.py +6 -2
  4. pyagrum/bnmixture/BNMLearning.py +12 -2
  5. pyagrum/bnmixture/BNMixture.py +6 -2
  6. pyagrum/bnmixture/__init__.py +6 -2
  7. pyagrum/bnmixture/notebook.py +6 -2
  8. pyagrum/causal/_CausalFormula.py +6 -2
  9. pyagrum/causal/_CausalModel.py +6 -2
  10. pyagrum/causal/__init__.py +6 -2
  11. pyagrum/causal/_causalImpact.py +6 -2
  12. pyagrum/causal/_dSeparation.py +6 -2
  13. pyagrum/causal/_doAST.py +6 -2
  14. pyagrum/causal/_doCalculus.py +6 -2
  15. pyagrum/causal/_doorCriteria.py +6 -2
  16. pyagrum/causal/_exceptions.py +6 -2
  17. pyagrum/causal/_types.py +6 -2
  18. pyagrum/causal/causalEffectEstimation/_CausalEffectEstimation.py +6 -2
  19. pyagrum/causal/causalEffectEstimation/_IVEstimators.py +6 -2
  20. pyagrum/causal/causalEffectEstimation/_RCTEstimators.py +6 -2
  21. pyagrum/causal/causalEffectEstimation/__init__.py +6 -2
  22. pyagrum/causal/causalEffectEstimation/_backdoorEstimators.py +6 -2
  23. pyagrum/causal/causalEffectEstimation/_causalBNEstimator.py +6 -2
  24. pyagrum/causal/causalEffectEstimation/_frontdoorEstimators.py +6 -2
  25. pyagrum/causal/causalEffectEstimation/_learners.py +6 -2
  26. pyagrum/causal/causalEffectEstimation/_utils.py +6 -2
  27. pyagrum/causal/notebook.py +8 -3
  28. pyagrum/clg/CLG.py +6 -2
  29. pyagrum/clg/GaussianVariable.py +6 -2
  30. pyagrum/clg/SEM.py +6 -2
  31. pyagrum/clg/__init__.py +6 -2
  32. pyagrum/clg/canonicalForm.py +6 -2
  33. pyagrum/clg/constants.py +6 -2
  34. pyagrum/clg/forwardSampling.py +6 -2
  35. pyagrum/clg/learning.py +6 -2
  36. pyagrum/clg/notebook.py +6 -2
  37. pyagrum/clg/variableElimination.py +6 -2
  38. pyagrum/common.py +7 -3
  39. pyagrum/config.py +7 -2
  40. pyagrum/ctbn/CIM.py +6 -2
  41. pyagrum/ctbn/CTBN.py +6 -2
  42. pyagrum/ctbn/CTBNGenerator.py +6 -2
  43. pyagrum/ctbn/CTBNInference.py +6 -2
  44. pyagrum/ctbn/CTBNLearner.py +6 -2
  45. pyagrum/ctbn/SamplesStats.py +6 -2
  46. pyagrum/ctbn/StatsIndepTest.py +6 -2
  47. pyagrum/ctbn/__init__.py +6 -2
  48. pyagrum/ctbn/constants.py +6 -2
  49. pyagrum/ctbn/notebook.py +6 -2
  50. pyagrum/deprecated.py +6 -2
  51. pyagrum/explain/_ComputationCausal.py +75 -0
  52. pyagrum/explain/_ComputationConditional.py +48 -0
  53. pyagrum/explain/_ComputationMarginal.py +48 -0
  54. pyagrum/explain/_CustomShapleyCache.py +110 -0
  55. pyagrum/explain/_Explainer.py +176 -0
  56. pyagrum/explain/_Explanation.py +70 -0
  57. pyagrum/explain/_FIFOCache.py +54 -0
  58. pyagrum/explain/_ShallCausalValues.py +204 -0
  59. pyagrum/explain/_ShallConditionalValues.py +155 -0
  60. pyagrum/explain/_ShallMarginalValues.py +155 -0
  61. pyagrum/explain/_ShallValues.py +296 -0
  62. pyagrum/explain/_ShapCausalValues.py +208 -0
  63. pyagrum/explain/_ShapConditionalValues.py +126 -0
  64. pyagrum/explain/_ShapMarginalValues.py +191 -0
  65. pyagrum/explain/_ShapleyValues.py +298 -0
  66. pyagrum/explain/__init__.py +81 -0
  67. pyagrum/explain/_explGeneralizedMarkovBlanket.py +152 -0
  68. pyagrum/explain/_explIndependenceListForPairs.py +146 -0
  69. pyagrum/explain/_explInformationGraph.py +264 -0
  70. pyagrum/explain/notebook/__init__.py +54 -0
  71. pyagrum/explain/notebook/_bar.py +142 -0
  72. pyagrum/explain/notebook/_beeswarm.py +174 -0
  73. pyagrum/explain/notebook/_showShapValues.py +97 -0
  74. pyagrum/explain/notebook/_waterfall.py +220 -0
  75. pyagrum/explain/shapley.py +225 -0
  76. pyagrum/lib/__init__.py +6 -2
  77. pyagrum/lib/_colors.py +6 -2
  78. pyagrum/lib/bn2graph.py +6 -2
  79. pyagrum/lib/bn2roc.py +6 -2
  80. pyagrum/lib/bn2scores.py +6 -2
  81. pyagrum/lib/bn_vs_bn.py +6 -2
  82. pyagrum/lib/cn2graph.py +6 -2
  83. pyagrum/lib/discreteTypeProcessor.py +99 -81
  84. pyagrum/lib/discretizer.py +6 -2
  85. pyagrum/lib/dynamicBN.py +6 -2
  86. pyagrum/lib/explain.py +17 -492
  87. pyagrum/lib/export.py +6 -2
  88. pyagrum/lib/id2graph.py +6 -2
  89. pyagrum/lib/image.py +6 -2
  90. pyagrum/lib/ipython.py +6 -2
  91. pyagrum/lib/mrf2graph.py +6 -2
  92. pyagrum/lib/notebook.py +6 -2
  93. pyagrum/lib/proba_histogram.py +6 -2
  94. pyagrum/lib/utils.py +6 -2
  95. pyagrum/pyagrum.py +976 -126
  96. pyagrum/skbn/_MBCalcul.py +6 -2
  97. pyagrum/skbn/__init__.py +6 -2
  98. pyagrum/skbn/_learningMethods.py +6 -2
  99. pyagrum/skbn/_utils.py +6 -2
  100. pyagrum/skbn/bnclassifier.py +6 -2
  101. pyagrum_nightly-2.1.1.9.dev202506061747485979.dist-info/LICENSE → pyagrum_nightly-2.3.1.9.dev202601031765915415.dist-info/LICENSE.md +3 -1
  102. pyagrum_nightly-2.3.1.9.dev202601031765915415.dist-info/LICENSES/LGPL-3.0-or-later.txt +304 -0
  103. pyagrum_nightly-2.3.1.9.dev202601031765915415.dist-info/LICENSES/MIT.txt +18 -0
  104. {pyagrum_nightly-2.1.1.9.dev202506061747485979.dist-info → pyagrum_nightly-2.3.1.9.dev202601031765915415.dist-info}/METADATA +3 -1
  105. pyagrum_nightly-2.3.1.9.dev202601031765915415.dist-info/RECORD +107 -0
  106. {pyagrum_nightly-2.1.1.9.dev202506061747485979.dist-info → pyagrum_nightly-2.3.1.9.dev202601031765915415.dist-info}/WHEEL +1 -1
  107. pyagrum/lib/shapley.py +0 -657
  108. pyagrum_nightly-2.1.1.9.dev202506061747485979.dist-info/LICENSE.LGPL +0 -165
  109. pyagrum_nightly-2.1.1.9.dev202506061747485979.dist-info/LICENSE.MIT +0 -17
  110. pyagrum_nightly-2.1.1.9.dev202506061747485979.dist-info/RECORD +0 -83
pyagrum/__init__.py CHANGED
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
pyagrum/_pyagrum.so CHANGED
Binary file
@@ -28,8 +28,12 @@ from numpy import quantile, array
28
28
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
29
29
  # OTHER DEALINGS IN THE SOFTWARE. #
30
30
  # #
31
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
32
- # licence (LICENSE.MIT) for more details. #
31
+ # See LICENCES for more details. #
32
+ # #
33
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
34
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
35
+ # - Christophe GONZALES(_at_AMU) #
36
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
33
37
  # #
34
38
  # Contact : info_at_agrum_dot_org #
35
39
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -144,10 +148,13 @@ class BNMLearner(IMixtureLearner):
144
148
 
145
149
  Notes
146
150
  -----
151
+
147
152
  - How is memory handled? First, to reduce memory consumption, only one BNLearner is instancied at most at a given time. Their are more improvements if ``source`` contains files.
148
153
  In that case, dataframes are loaded one at a time to reduce memory consumption. Otherwise all DataFrames are stored together.
154
+
149
155
  - We create a reference learner using the source with maximum weight.
150
156
 
157
+
151
158
  Parameters
152
159
  ----------
153
160
  weights : List[float]
@@ -247,10 +254,13 @@ class BNMBootstrapLearner(IMixtureLearner):
247
254
 
248
255
  Notes
249
256
  -----
257
+
250
258
  - How is memory handled? First, to reduce memory consumption, only one BNLearner is instancied at most at a given time.
259
+
251
260
  - To keep one BNLearner at a time, we create a reference learner. To apply a method for the learning algorithm of all bootstraped BNs,
252
261
  "use" methods modify the reference learner. Then the other learners make use of ``BNLearner.copyState`` to update themself according to the reference learner.
253
262
 
263
+
254
264
  Parameters
255
265
  ----------
256
266
  source : str | pandas.DataFrame
@@ -29,8 +29,12 @@ from zipfile import ZipFile
29
29
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
30
30
  # OTHER DEALINGS IN THE SOFTWARE. #
31
31
  # #
32
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
33
- # licence (LICENSE.MIT) for more details. #
32
+ # See LICENCES for more details. #
33
+ # #
34
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
35
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
36
+ # - Christophe GONZALES(_at_AMU) #
37
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
34
38
  # #
35
39
  # Contact : info_at_agrum_dot_org #
36
40
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
pyagrum/causal/_doAST.py CHANGED
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
pyagrum/causal/_types.py CHANGED
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -121,7 +125,8 @@ def getCausalImpact(
121
125
  gnb.flow.add(explanation, caption="Impossible")
122
126
  else:
123
127
  gnb.flow.add(
124
- "$$\\begin{equation*}" + formula.toLatex() + "\\end{equation*}$$", caption="Explanation : " + explanation
128
+ "\n\n$$\n\\begin{equation*}" + formula.toLatex() + "\\end{equation*}\n$$\n\n",
129
+ caption="Explanation : " + explanation,
125
130
  )
126
131
 
127
132
  if formula is None:
pyagrum/clg/CLG.py CHANGED
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
pyagrum/clg/SEM.py CHANGED
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
pyagrum/clg/__init__.py CHANGED
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
pyagrum/clg/constants.py CHANGED
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #
pyagrum/clg/learning.py CHANGED
@@ -25,8 +25,12 @@
25
25
  # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR #
26
26
  # OTHER DEALINGS IN THE SOFTWARE. #
27
27
  # #
28
- # See the GNU Lesser General Public License (LICENSE.LGPL) and the MIT #
29
- # licence (LICENSE.MIT) for more details. #
28
+ # See LICENCES for more details. #
29
+ # #
30
+ # SPDX-FileCopyrightText: Copyright 2005-2025 #
31
+ # - Pierre-Henri WUILLEMIN(_at_LIP6) #
32
+ # - Christophe GONZALES(_at_AMU) #
33
+ # SPDX-License-Identifier: LGPL-3.0-or-later OR MIT #
30
34
  # #
31
35
  # Contact : info_at_agrum_dot_org #
32
36
  # homepage : http://agrum.gitlab.io #