Closed cmacdonald closed 5 years ago
E.g. https://github.com/Georgetown-IR-Lab/cedr/blob/master/data.py#L70:
random.shuffle(pos_ids) pos_id = pos_ids[0]
Why not
pos_id = random.choice(pos_ids)
Yes, the shuffle was totally overkill.
E.g. https://github.com/Georgetown-IR-Lab/cedr/blob/master/data.py#L70:
Why not