Commit 0907e22c authored by Benoit Favre's avatar Benoit Favre
Browse files

set repeatable random seed

parent ce7b4d8d
......@@ -14,6 +14,8 @@ items = json.loads(sys.stdin.read())
num_test = int(float(sys.argv[3]) * len(items))
num_valid = int(float(sys.argv[4]) * len(items))
random.seed(12345)
for n in range(num_folds):
random.shuffle(items)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment