From fe23fda86d77090e700b49efeb492c5ade808c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Delabre?= Date: Mon, 16 Dec 2019 13:32:32 -0500 Subject: [PATCH] Shuffle configurations in experiment --- experiment.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/experiment.py b/experiment.py index 3cfea10..511c989 100644 --- a/experiment.py +++ b/experiment.py @@ -4,6 +4,7 @@ import math import torch import time import pickle +import random import sys # Number of seconds to wait between each checkpoint @@ -153,7 +154,9 @@ def save_results(results, path): # List of all configurations to be tested +random.seed(42) all_confs = list(generate_test_configurations()) +random.shuffle(all_confs) # Number of splits of the configuration list parts_count = 1