pyAgrum-nightly 2.3.0.9.dev202512061764412981__cp310-abi3-macosx_11_0_arm64.whl → 2.3.1.9.dev202601091765915415__cp310-abi3-macosx_11_0_arm64.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.
pyagrum/_pyagrum.so CHANGED
Binary file
@@ -125,7 +125,8 @@ def getCausalImpact(
125
125
  gnb.flow.add(explanation, caption="Impossible")
126
126
  else:
127
127
  gnb.flow.add(
128
- "$$\\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,
129
130
  )
130
131
 
131
132
  if formula is None:
pyagrum/common.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = '2.3.0.9'
1
+ __version__ = '2.3.1.9'
2
2
  __license__ = __doc__
3
3
  __project_url__ = 'https://agrum.org'
4
4
  __project_name__ = 'pyAgrum'
pyagrum/pyagrum.py CHANGED
@@ -26269,12 +26269,12 @@ class BNLearner(object):
26269
26269
  return p
26270
26270
 
26271
26271
  def fitParameters(self,bn,take_into_account_score=True):
26272
- if set(self.names())!=bn.names():
26273
- raise Exception("Not the same variable names in the database and in the BN")
26272
+ if not set(self.names()).issuperset(bn.names()):
26273
+ raise Exception(f"Some variables are in the BN but not in the data : {bn.names()-set(self.names())}")
26274
26274
 
26275
26275
  tmp=self.learnParameters(bn,take_into_account_score)
26276
26276
  for n in tmp.names():
26277
- bn.cpt(n).fillWith(tmp.cpt(n))
26277
+ bn.cpt(bn.idFromName(n)).fillWith(tmp.cpt(n))
26278
26278
  return self
26279
26279
 
26280
26280
  def learnEssentialGraph(self):
@@ -29549,7 +29549,7 @@ class ShaferShenoyLIMIDInference(object):
29549
29549
 
29550
29550
  # Register ShaferShenoyLIMIDInference in _pyagrum:
29551
29551
  _pyagrum.ShaferShenoyLIMIDInference_swigregister(ShaferShenoyLIMIDInference)
29552
- __version__ = '2.3.0.9'
29552
+ __version__ = '2.3.1.9'
29553
29553
  __license__ = __doc__
29554
29554
  __project_url__ = 'https://agrum.org'
29555
29555
  __project_name__ = 'pyAgrum'
@@ -31431,7 +31431,7 @@ def getPosterior(model, *, target, evs=None):
31431
31431
  # creating a new Tensor from posterior(will disappear with ie)
31432
31432
  return pyagrum.Tensor(inf.posterior(target))
31433
31433
 
31434
- __version__ = '2.3.0.9'
31434
+ __version__ = '2.3.1.9'
31435
31435
  __license__ = __doc__
31436
31436
  __project_url__ = 'https://agrum.org'
31437
31437
  __project_name__ = 'pyAgrum'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyAgrum-nightly
3
- Version: 2.3.0.9.dev202512061764412981
3
+ Version: 2.3.1.9.dev202601091765915415
4
4
  Summary: Bayesian networks and other Probabilistic Graphical Models.
5
5
  Home-page: https://agrum.gitlab.io/
6
6
  Author: Pierre-Henri Wuillemin and Christophe Gonzales
@@ -1,15 +1,15 @@
1
- pyagrum_nightly-2.3.0.9.dev202512061764412981.dist-info/LICENSE.md,sha256=HYT-rEPDlbvyRsKwEEFLHgv9Dw70nNhZgdl06P_dcmg,911
2
- pyagrum_nightly-2.3.0.9.dev202512061764412981.dist-info/WHEEL,sha256=IAeYM94chh0jrGkvMnlK45jr5eatE-dfoYH3i3BTQfg,97
3
- pyagrum_nightly-2.3.0.9.dev202512061764412981.dist-info/METADATA,sha256=JRmjzRslLArE8tljnsjZrTW-U-Kng2eyN2DZiJdzQwE,5394
4
- pyagrum_nightly-2.3.0.9.dev202512061764412981.dist-info/LICENSES/LGPL-3.0-or-later.txt,sha256=mWrwUT3yH3SWKIlRxBQooDwXTp5KnWNmXFfWcPhFzLE,42098
5
- pyagrum_nightly-2.3.0.9.dev202512061764412981.dist-info/LICENSES/MIT.txt,sha256=sFeF-fGOZxa6tjQksRRUUTuZQ6IiWVtwQRAJIC_FkrU,1078
1
+ pyagrum_nightly-2.3.1.9.dev202601091765915415.dist-info/LICENSE.md,sha256=HYT-rEPDlbvyRsKwEEFLHgv9Dw70nNhZgdl06P_dcmg,911
2
+ pyagrum_nightly-2.3.1.9.dev202601091765915415.dist-info/WHEEL,sha256=IAeYM94chh0jrGkvMnlK45jr5eatE-dfoYH3i3BTQfg,97
3
+ pyagrum_nightly-2.3.1.9.dev202601091765915415.dist-info/METADATA,sha256=7aMdaxUbynIpcsbDuht0kor9vx7x6Qor4LqNlRUvM_M,5394
4
+ pyagrum_nightly-2.3.1.9.dev202601091765915415.dist-info/LICENSES/LGPL-3.0-or-later.txt,sha256=mWrwUT3yH3SWKIlRxBQooDwXTp5KnWNmXFfWcPhFzLE,42098
5
+ pyagrum_nightly-2.3.1.9.dev202601091765915415.dist-info/LICENSES/MIT.txt,sha256=sFeF-fGOZxa6tjQksRRUUTuZQ6IiWVtwQRAJIC_FkrU,1078
6
6
  pyagrum/defaults.ini,sha256=AoKPBdH8b-6az9Er_0xZfjjH3g8xUfDIWpAmOb8nICY,4668
7
7
  pyagrum/config.py,sha256=2t0LHuuPilYZvEPSV0Yy5C5U71ZLzZlee5K_jblxSkg,11296
8
8
  pyagrum/deprecated.py,sha256=-c9PC_Nmzmx7yuYN9JfGeR-XiaNjQ8t4L6uM9vrRShw,4170
9
9
  pyagrum/__init__.py,sha256=oQraSyGryVUjqi5C1K622cZzs4ETa1QSH9OKmYsd6G0,7458
10
- pyagrum/_pyagrum.so,sha256=qWHRLH7enmCyCQ7rbgOZNyvp0eItNhu7bpfrB7bzVqk,13295656
11
- pyagrum/common.py,sha256=8ZKYYMUd4g6eL9Qs5j6HRVrrE6Oc78x5fuCv7b27VtY,3563
12
- pyagrum/pyagrum.py,sha256=kgCWBWqGx3QSYnKv9EGkvqly_dKaE91OBW9o-Xsa4P0,837071
10
+ pyagrum/_pyagrum.so,sha256=Ifc4kALYOKu7flVijV-L45EEkYKSvK8wnkYMFl1ofeY,13295992
11
+ pyagrum/common.py,sha256=scgSlA8Zb5KRSE7ae7Cx89gNcCCH0Yflq2Wu-LOfDuU,3563
12
+ pyagrum/pyagrum.py,sha256=uJ47R2HZeGtRp41IPSqPlE5VKbG3HSzo35jV6LvjVz0,837126
13
13
  pyagrum/ctbn/CTBNLearner.py,sha256=2T4Lp7jKngcX-SIHAJFCj8sBSItqSofj1yNqhi73h7w,6591
14
14
  pyagrum/ctbn/constants.py,sha256=jTbwEGttp6hcGfrvk0tOoFn3rm4xsMHNcTusjMJtppQ,3282
15
15
  pyagrum/ctbn/__init__.py,sha256=l-wsJn2XkCzR_SZNpACv54ZhVR40YMnR6aUbnh36F3k,3801
@@ -52,7 +52,7 @@ pyagrum/causal/__init__.py,sha256=AyBKPkyy18Loj9LfnIuE0TeNPXme2LnKiPtW361XWuk,43
52
52
  pyagrum/causal/_CausalFormula.py,sha256=KOSK0RinymR7uhBh-sQU-1BqSbOpMZK46MqOzOUjCQE,8683
53
53
  pyagrum/causal/_doorCriteria.py,sha256=a6AFhoUfyj9L9MuR7KW2RVdFn1n4d4Rq0qOHjxXLuYo,10548
54
54
  pyagrum/causal/_doAST.py,sha256=Ar0JGCp88qWwjCLxrUWkwytgGUpMeY6q_odVKBY2taU,21094
55
- pyagrum/causal/notebook.py,sha256=4x63V_UcCVRcHO2krZxPCALmmdbi6sI9A5rP5MomY50,6123
55
+ pyagrum/causal/notebook.py,sha256=9u2tMR_j4aQ2Wtp4oBQnQpAUieE2C5CnVLAMY8DzTlc,6142
56
56
  pyagrum/causal/_exceptions.py,sha256=pzbSlcGJt2N8beVYj_zsCbcnvTmo4V5jsStTZVJv8kk,4003
57
57
  pyagrum/causal/_CausalModel.py,sha256=MZlkT8zvOqisb3frgfaWa-jIpgJ8-Q4gIn21nbFKsA4,14110
58
58
  pyagrum/causal/_doCalculus.py,sha256=DujDC2gyb8xUu2vYCe5iu1NBv6qTlYosEFZssjqtWHs,11834
@@ -104,4 +104,4 @@ pyagrum/skbn/_learningMethods.py,sha256=drJ5P9S8y4_FE4cx0DnWA--1-ugq9n82NaLwIGjI
104
104
  pyagrum/skbn/__init__.py,sha256=o8IvRqRwMZ5LzJXb23dPIGgpa5T89I_J1v1Hd_gerGM,3259
105
105
  pyagrum/skbn/_MBCalcul.py,sha256=ifnmQ2Lbb2xi4-u7xMxD3U1IffJGIpnCsN4BUh3iNW0,8545
106
106
  pyagrum/skbn/_utils.py,sha256=tCZj1BM7ta9OyiWCkC5Pjpu14s9y2r5b90Zniy2Cc_s,11826
107
- pyagrum_nightly-2.3.0.9.dev202512061764412981.dist-info/RECORD,,
107
+ pyagrum_nightly-2.3.1.9.dev202601091765915415.dist-info/RECORD,,