MCPcopy Create free account
hub / github.com/BIT-DataLab/LakeBench / get_c_goodness

Function get_c_goodness

union/TUS/run_c_alignment.py:63–72  ·  view source on GitHub ↗
(c, max_c_score)

Source from the content-addressed store, hash-verified

61
62
63def get_c_goodness(c, max_c_score):
64 file_path = os.path.join('result', str(c)+'_align_distribution.json')
65 with open('result/uset_lsh_all.json', 'r') as file:
66 dic = json.load(file)
67 goodness = 0
68 for key, values in dic.items():
69 if float(key) <= max_c_score:
70 goodness += values
71
72 return goodness
73
74
75def alignment(query, candiate, type = 'cal'):

Callers 2

alignmentFunction · 0.70
alignment_processFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected