Last active
April 8, 2016 12:52
-
-
Save lotka/a97f21979bab7d4d03812626b408f0f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from itertools import bounds | |
def getExperiments(bounds): | |
ranges=[] | |
for key,val in bounds.items(): | |
min,max,n = val | |
values = np.linspace(min,max,n) | |
ranges.append(values) | |
# List of store all the combinations | |
overwrite_dict_list = [] | |
for element in product(*ranges): | |
d = {} | |
for i,key in enumerate(bounds.keys()): | |
d[key] = element[i] | |
overwrite_dict_list.append(d) | |
return overwrite_dict_list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment