Shuffle configurations in experiment

This commit is contained in:
Mattéo Delabre 2019-12-16 13:32:32 -05:00
parent 8d64f91661
commit fe23fda86d
Signed by: matteo
GPG Key ID: AE3FBD02DC583ABB
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import math
import torch import torch
import time import time
import pickle import pickle
import random
import sys import sys
# Number of seconds to wait between each checkpoint # Number of seconds to wait between each checkpoint
@ -153,7 +154,9 @@ def save_results(results, path):
# List of all configurations to be tested # List of all configurations to be tested
random.seed(42)
all_confs = list(generate_test_configurations()) all_confs = list(generate_test_configurations())
random.shuffle(all_confs)
# Number of splits of the configuration list # Number of splits of the configuration list
parts_count = 1 parts_count = 1