-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_e_i_wc.py
More file actions
23 lines (19 loc) · 757 Bytes
/
_e_i_wc.py
File metadata and controls
23 lines (19 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from machinable import Interface, get
class _E_I_WC(Interface):
def launch(self):
for trial in range(1):
with get("machinable.scope", {"trial": trial}):
for version in [
{},
{
"dopt_params.surrogate_method_name": "gpr",
},
{
"dopt_params.surrogate_method_name": "megp",
},
"~joint_model(mode='o', backbone='resnet')",
"~joint_model(mode='o', backbone='fttransformer')",
]:
get("interface.sopt_wc", version).launch()
def inspect(self):
print(self.components[0].get_best()["y"])