Shuffle configurations in experiment
This commit is contained in:
parent
8d64f91661
commit
fe23fda86d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue