MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / is_float

Function is_float

NLP/Text2SQL-BASELINE/tools/evaluation/utils.py:40–48  ·  view source on GitHub ↗

is float

(value)

Source from the content-addressed store, hash-verified

38
39
40def is_float(value):
41 """is float"""
42 try:
43 float(value)
44 return True
45 except ValueError:
46 return False
47 except TypeError:
48 return False
49
50
51def get_scores(count, pred_total, gold_total):

Callers 1

_equalFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected