MCPcopy Create free account
hub / github.com/RingBDStack/GDAP / safe_div

Method safe_div

extraction/predict_parser/predict_parser.py:54–58  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

52
53 @staticmethod
54 def safe_div(a, b):
55 if b == 0.:
56 return 0.
57 else:
58 return a / b
59
60 def compute_f1(self, prefix=''):
61 tp = self.tp

Callers 1

compute_f1Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected