-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_ca1_samplers.py
More file actions
32 lines (29 loc) · 1.02 KB
/
_ca1_samplers.py
File metadata and controls
32 lines (29 loc) · 1.02 KB
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
26
27
28
29
30
31
32
from machinable import Interface, get
class _Ca1Samplers(Interface):
def populations(self):
return [
"SCA",
"IVY",
"PVBC",
"CCKBC",
"AAC",
"BS",
"OLM",
"NGFC",
"IS",
]
def launch(self):
for trial in range(3):
with get("machinable.scope", {"trial": trial}):
for nm in self.populations():
for sampler in ["slh", "lh", "mc", "sobol"]:
get(
"interface.sopt_modeling",
[
f"""~from_protocol("benchmarks/ca1_pinsky_rinzel_modeling/config/CA1_{nm}.yaml")""",
{
"dopt_params.surrogate_method_name": "gpr",
"dopt_params.initial_method": sampler,
},
],
).launch()