causing 2.4.1__py3-none-any.whl → 2.4.3__py3-none-any.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.

Potentially problematic release.


This version of causing might be problematic. Click here for more details.

causing/graph.py CHANGED
@@ -116,7 +116,7 @@ def annotated_graphs(
116
116
 
117
117
  NODE_PALETTE = "#ff7973 #FFC7AD #EEEEEE #BDE7BD #75cf73".split(" ")
118
118
  EDGE_PALETTE = "#ff7973 #FFC7AD #BBBBBB #aad3aa #75cf73".split(" ")
119
- PEN_WIDTH_PALETTE = [6, 4, 2, 4, 6]
119
+ PEN_WIDTH_PALETTE = [12, 8, 4, 8, 12]
120
120
 
121
121
 
122
122
  def color(val, max_val, palette):
@@ -175,7 +175,10 @@ def graph_to_dot(
175
175
  )
176
176
  col_str = color(data["effect"], max_val, palette=edge_palette)
177
177
  penwidth = color(data["effect"], max_val, palette=pen_width_palette)
178
- dot_str += f' "{from_node}" -> "{to_node}" [label="{eff_str}" color="{col_str}" penwidth="{penwidth}"]\n'
178
+ dot_str += (
179
+ f' "{from_node}" -> "{to_node}" [label="{eff_str}" color="{col_str}" penwidth="{penwidth}", '
180
+ f"arrowsize=0.5]\n"
181
+ )
179
182
 
180
183
  for from_node, to_node in invisible_edges:
181
184
  dot_str += f' "{from_node}" -> "{to_node}" [style = "invisible", arrowhead="none"]\n'
causing/model.py CHANGED
@@ -88,14 +88,10 @@ class Model:
88
88
  # [eq(*eq_in, *parameters.values()) for eq_in in eq_inputs],
89
89
  # dtype=np.float64,
90
90
  # )
91
+ np.seterr(under="ignore")
91
92
  computed_yvars = []
92
93
  for eq_in in eq_inputs:
93
- try:
94
- computed_yvars.append(eq(*eq_in, *parameters.values()))
95
- except FloatingPointError:
96
- # Floating Point Error for self.yvars[i]
97
- # Adding 0.0 to overcome this.
98
- computed_yvars.append(0.0)
94
+ computed_yvars.append(eq(*eq_in, *parameters.values()))
99
95
 
100
96
  yhat[i] = np.array(
101
97
  computed_yvars,
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: causing
3
- Version: 2.4.1
3
+ Version: 2.4.3
4
4
  Summary: Causing: CAUSal INterpretation using Graphs
5
5
  Home-page: https://github.com/realrate/Causing
6
6
  Author: Dr. Holger Bartel
@@ -17,6 +17,16 @@ Requires-Dist: scipy~=1.9
17
17
  Requires-Dist: sympy~=1.5
18
18
  Requires-Dist: networkx~=2.7
19
19
  Requires-Dist: pre-commit
20
+ Dynamic: author
21
+ Dynamic: author-email
22
+ Dynamic: classifier
23
+ Dynamic: description
24
+ Dynamic: description-content-type
25
+ Dynamic: home-page
26
+ Dynamic: license-file
27
+ Dynamic: requires-dist
28
+ Dynamic: requires-python
29
+ Dynamic: summary
20
30
 
21
31
  # Causing: CAUSal INterpretation using Graphs
22
32
 
@@ -146,6 +156,11 @@ We are excited to be a winner of the PyTorch AI Hackathon 2020 in the Responsibl
146
156
 
147
157
  [devpost.com/software/realrate-explainable-ai-for-company-ratings](https://devpost.com/software/realrate-explainable-ai-for-company-ratings "devpost.com/software/realrate-explainable-ai-for-company-ratings").
148
158
 
159
+ ## GitHub Star History
160
+
161
+ [star-history.com](https://www.star-history.com/#realrate/Causing&Date)
162
+ ![star-history-2025327](https://github.com/user-attachments/assets/67271706-0534-4b97-b9da-7fe502f1d94a)
163
+
149
164
  ## Contact
150
165
 
151
166
  Dr. Holger Bartel
@@ -153,4 +168,5 @@ RealRate
153
168
  Cecilienstr. 14, D-12307 Berlin
154
169
  [holger.bartel@realrate.ai](mailto:holger.bartel@realrate.ai?subject=[Causing])
155
170
  Phone: +49 160 957 90 844
156
- [www.realrate.ai](https://www.realrate.ai "www.realrate.ai")
171
+ [realrate.ai](https://realrate.ai)
172
+ [drbartel.com](https://drbartel.com)
@@ -1,14 +1,14 @@
1
1
  causing/__init__.py,sha256=O_9uV9aX3q-c6M3KhY7bQAXncAecwnSfXw7ulGmMvSw,714
2
- causing/graph.py,sha256=5v3t7dhFtxcIjpeJEOVdKxzSleufmXECSKqlhykMbcE,8637
3
- causing/model.py,sha256=jgIuuSxoYuel1ZGwl-nj7vVoBsAqXUFAW_nkDld_OkU,8589
2
+ causing/graph.py,sha256=OoIwJeYnimU2CCs75UZgYB_gFZo_G3CMGeLGslUHqG8,8694
3
+ causing/model.py,sha256=hQkspclVFyk1VKlQfCXHeHZ85VlpYdZOpLvZN8I4avA,8368
4
4
  causing/utils.py,sha256=qfiNAb-MxVFeZVan7I4X-q04LVJZ8ST2YdVdvWvnjOE,2461
5
+ causing-2.4.3.dist-info/licenses/LICENSE.md,sha256=ypzox8OiFHlpmiHOnxpC6PSGuDCNwzn_Q0iPYPJtt2Q,1095
5
6
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
7
  tests/test_estimate.py,sha256=xr9qUVzM9XO70agw_J3PE7oy3aiytUs4CMxvsegNZ6w,3120
7
8
  tests/utils.py,sha256=OPEuaBQF3_Azu4bW5q-6J5mtzGrVw4KJUWHd8utK4AE,510
8
9
  tests/examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
10
  tests/examples/models.py,sha256=lr7v4LArOi3MlcKRvjGAJ6pEHVz1IQKbmKctZ02Vcjc,3849
10
- causing-2.4.1.dist-info/LICENSE.md,sha256=ypzox8OiFHlpmiHOnxpC6PSGuDCNwzn_Q0iPYPJtt2Q,1095
11
- causing-2.4.1.dist-info/METADATA,sha256=G2gYzFvtJD55pQTfeLdlH13BNY6qrHMLl3LTKw96UJc,10026
12
- causing-2.4.1.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
13
- causing-2.4.1.dist-info/top_level.txt,sha256=AZ4fGg06-ThD38PJjnIg4Yd1x4v_4hgRtPetAcKMmug,14
14
- causing-2.4.1.dist-info/RECORD,,
11
+ causing-2.4.3.dist-info/METADATA,sha256=9unK5EgBSuS1GUPsHLaMJ3ZWS_U1NqwTxnozLbOaByU,10462
12
+ causing-2.4.3.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
13
+ causing-2.4.3.dist-info/top_level.txt,sha256=AZ4fGg06-ThD38PJjnIg4Yd1x4v_4hgRtPetAcKMmug,14
14
+ causing-2.4.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5