Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/awslabs/gap-text2sql
/ F1
Function
F1
rat-sql-gap/seq2struct/datasets/spider_lib/evaluation.py:98–101 ·
view source on GitHub ↗
(acc, rec)
Source
from the content-addressed store, hash-verified
96
97
98
def
F1(acc, rec):
99
if
(acc + rec) == 0:
100
return
0
101
return
(2. * acc * rec) / (acc + rec)
102
103
104
def
get_scores(count, pred_total, label_total):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected