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

Function cumulative_frequency

union/TUS/Unl.py:46–55  ·  view source on GitHub ↗
(file_path, given_value)

Source from the content-addressed store, hash-verified

44
45
46def cumulative_frequency(file_path, given_value):
47 cumulative_freq = 0.0
48 with open(file_path, 'r') as file:
49 frequency_dict = json.load(file)
50
51 for right_value, frequency in frequency_dict.items():
52 if float(right_value) <= given_value:
53 cumulative_freq += frequency
54
55 return cumulative_freq
56
57
58def read_goodness_from_dict(file_path, value):

Callers 2

get_column_goodnessFunction · 0.90
get_column_goodnessFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected