Created
November 9, 2023 17:19
-
-
Save hweller1/19ba9eeb86d20236dc916462bcce74a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def compute_overlap(exact_result_set: List, approx_result_set: List) -> float: | |
# each result set is a list of urls, order not considered | |
return len(exact_result_set.intersection(set(approx_result_set)) / len(set(exact_result_set)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment