from itertools import product
parameters = dict(
lr = [0.01, 0.001]
,batch_size = [10,100,1000]
,shuffle = [True, False]
)
param_values = [v for v in parameters.values()]
for lr, batch_size, shuffle in product(*param_values):
print(lr, batch_size, shuffle)
0.01 10 True
0.01 10 False
0.01 100 True
0.01 100 False
0.01 1000 True
0.01 1000 False
0.001 10 True
0.001 10 False
0.001 100 True
0.001 100 False
0.001 1000 True
0.001 1000 False