-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsopt_wc.py
More file actions
65 lines (62 loc) · 2.36 KB
/
sopt_wc.py
File metadata and controls
65 lines (62 loc) · 2.36 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import os
from interface.sopt import Sopt
from typing import Dict, Optional
from pydantic import Field
from miv_simulator.mechanisms import compile
import yaml
import numpy as np
class SoptWc(Sopt):
class Config(Sopt.Config):
dopt_params: Dict = Field(
default_factory=lambda: {
"opt_id": "dmosopt_wilson_cowan",
"optimizer_name": "nsga2",
"initial_method": "mc",
"n_initial": 10,
"initial_maxiter": 10,
"n_epochs": 10,
"population_size": 100,
"num_generations": 10,
"termination_conditions": True,
"resample_fraction": 1.0,
"surrogate_method_name": None,
"surrogate_method_kwargs": {},
"feasibility_method_name": None,
"feasibility_method_kwargs": {},
"save": True,
"save_surrogate_evals": True,
"obj_fun_init_name": "benchmarks.cortical_culture.e_i_system.obj_fun_init",
"obj_fun_init_args": {},
"objective_names": [
"Delta_mean",
"Theta_mean",
"Alpha_mean",
"Beta_mean",
"Gamma_mean",
"Delta_std",
"Theta_std",
"Alpha_std",
"Beta_std",
"Gamma_std",
],
"feature_dtypes": "benchmarks.cortical_culture.e_i_system.feature_dtypes",
"space": {
"E_E_weight": [0.001, 25.0],
"E_I_weight": [0.001, 25.0],
"I_E_weight": [0.001, 25.0],
"I_I_weight": [0.001, 25.0],
"diffusion_strength": [0.001, 50.0],
"E_theta": [0.001, 10.0],
"I_theta": [0.001, 10.0],
"E_tau": [0.001, 10.0],
"I_tau": [0.001, 10.0],
"E_gain": [0.001, 50.0],
"I_gain": [0.001, 50.0],
"E_E_scale": [0.001, 50.0],
"I_E_scale": [0.001, 50.0],
"E_I_scale": [0.001, 50.0],
"I_I_scale": [0.001, 50.0],
},
"problem_parameters": {},
}
)