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

Function getAccuracyResult

union/Santos/query_opendata.py:20–34  ·  view source on GitHub ↗
(sortedTableList, expected_tables, k)

Source from the content-addressed store, hash-verified

18#Check each cell to see if it is text. Then if enough number of cells are text, the column is considered as a text column.
19
20def getAccuracyResult(sortedTableList, expected_tables, k):
21 i = 0
22 tp = 0
23 fp = 0
24 for key in sortedTableList:
25 data_lake_table = key[0].split(os.sep)[-1]
26 if data_lake_table in expected_tables:
27 tp = tp+1
28 else:
29 fp = fp+1
30 i = i +1
31 if (i >=k):
32 break
33 fp = k - tp
34 return tp, fp
35
36def getMatchingTables(item, weight, parameter):
37 returnList = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected