Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RingBDStack/GDAP
/ safe_div
Method
safe_div
evaluation.py:146–150 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
144
145
@staticmethod
146
def
safe_div(a, b):
147
if
b == 0.:
148
return
0.
149
else
:
150
return
a / b
151
152
def
compute_f1(self, prefix=
''
):
153
tp = self.tp
Callers
1
compute_f1
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected