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

Method ecdf

union/D3L/d3l/querying/query_engine.py:94–98  ·  view source on GitHub ↗
(samples, values)

Source from the content-addressed store, hash-verified

92 """
93
94 def ecdf(samples, values):
95 return [
96 np.searchsorted(samples[:, j], value, side="right") / len(samples)
97 for j, value in enumerate(values)
98 ]
99
100 ecdf_weights = []
101 for i in range(len(scores)):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected