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

Function evalute_dict

union/Santos/evaluation.py:136–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134
135
136def evalute_dict():
137 groundtruth_path = '../groundtruth/santosUnionBenchmark.pickle'
138 result_path = '../stats/santos_benchmark_result_by_santos_full.pickle'
139 with open(result_path, 'rb') as f:
140 result_dict = pickle.load(f)
141
142 with open(groundtruth_path, 'rb') as f:
143 gt_dict = pickle.load(f)
144
145 precisions = []
146 recalls = []
147 for table in result_dict.keys():
148 precision, recall = calculate_metrics_dict(table, result_dict[table], gt_dict[table])#计算这一个表的精度召回
149 precisions.append(precision)
150 recalls.append(recall)
151
152 precision = np.mean(precisions)
153 recall = np.mean(recalls)
154
155 print("Precision:", precision)
156 print("Recall:", recall)
157
158
159if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

calculate_metrics_dictFunction · 0.85
keysMethod · 0.45

Tested by

no test coverage detected