Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Szendrey committed Feb 3, 2025
1 parent 0b46114 commit 5a35099
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
1 change: 0 additions & 1 deletion service/models/operations/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ class InterventionObjective(BaseModel):
example="param_value",
)
param_name: str
# TODO Do we need param_value and start_time or can we use init?
param_value: Optional[Optional[float]] = None
start_time: Optional[float] = None
time_objective_function: Optional[InterventionObjectiveFunction] = None
Expand Down
18 changes: 12 additions & 6 deletions tests/examples/optimize/input/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@
"model_config_id": "sidarthe",
"optimize_interventions": [{
"intervention_type": "param_value",
"objective_function_option": "lower_bound",
"start_time": [2],
"param_names": ["beta"],
"param_values": [0.02],
"initial_guess": [0],
"relative_importance": 1
"param_name": "beta",
"start_time": 2,
"param_value": 0.02,
"time_objective_function": "initial_guess",
"parameter_objective_function": "initial_guess",
"relative_importance": 5,
"param_value_initial_guess": 0.02,
"parameter_value_lower_bound": 0,
"parameter_value_upper_bound": 0.08,
"start_time_initial_guess": 1,
"start_time_lower_bound": 0,
"start_time_upper_bound": 50
}],
"timespan": {
"start": 0,
Expand Down

0 comments on commit 5a35099

Please sign in to comment.