Closed ulf1 closed 3 years ago
J(A, B) = | INTERSECTION(A,B) | / | UNION(A,B) | C(A,B) = | INTERSECTION(A,B) | / | A |
Assume A=Q is a shingleset that we want to query against a database full of shinglesets x_i (i.e. B=x_i for specific database example i).
A=Q
x_i
B=x_i
i
Literature:
def containment(Q: set, X: set) -> float: u = float(len(Q.intersection(X))) return u / len(Q)
why?
Assume
A=Q
is a shingleset that we want to query against a database full of shinglesetsx_i
(i.e.B=x_i
for specific database examplei
).Literature: