-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_mn_random.py
More file actions
25 lines (22 loc) · 1005 Bytes
/
_mn_random.py
File metadata and controls
25 lines (22 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from machinable import Interface, get
class _MnRandom(Interface):
def launch(self):
for trial in range(3):
with get("machinable.scope", {"trial": trial}):
for c in [
"",
"'benchmarks/motoneuron_modeling/config/wide_ranges.yaml'",
]:
for sampler in ["slh", "lh", "mc", "sobol"]:
get(
"interface.sopt_modeling",
[
f"""~from_protocol({c})""",
{
"dopt_params.surrogate_method_name": "gpr",
"dopt_params.n_epochs": 0,
"dopt_params.initial_method": sampler,
"dopt_params.n_initial": 319, # * 11 = 3509
},
],
).launch()