Skip to content
RED SAG Skills
hard20 pts · first answer countsml-pipelinesreproducibilitydata-splitting

Hash split differs between runs

This split assigns users to train or test. On another machine, users land in different splits. Why?

def split(user_id: str) -> str:
    return "train" if hash(user_id) % 10 < 8 else "test"
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions