the hash function should return python type of int but due to self.remaining_candidates which is the result of earlier max_protected = aux_mtable['block'].sum() makes it numpy int. So, a quick fix is casting to int
def __hash__(self):
return (self.remaining_candidates + len(self.remaining_block_sizes) << 16) \
+ self.current_block_number + self.candidates_assigned_so_far
def __hash__(self):
return int(self.remaining_candidates + len(self.remaining_block_sizes) << 16) \
+ self.current_block_number + self.candidates_assigned_so_far
the hash function should return python type of int but due to
self.remaining_candidateswhich is the result of earliermax_protected = aux_mtable['block'].sum()makes it numpy int. So, a quick fix is casting tointfairsearch-fair-python/fairsearchcore/fail_prob.py
Line 176 in a92a3d6