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

Function _false_positive_probability

join/LSH/datasketch/lsh.py:12–15  ·  view source on GitHub ↗
(threshold, b, r)

Source from the content-addressed store, hash-verified

10
11# 利用积分计算fp
12def _false_positive_probability(threshold, b, r):
13 _probability = lambda s : 1 - (1 - s**float(r))**float(b)
14 a, err = integrate(_probability, 0.0, threshold)
15 return a
16
17# 利用积分计算fn
18def _false_negative_probability(threshold, b, r):

Callers 1

_optimal_paramFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected