Skip to content

Commit

Permalink
Update fixtures.py
Browse files Browse the repository at this point in the history
  • Loading branch information
anirban-chaudhuri committed Jul 31, 2024
1 parent 5ba69b7 commit 9d58624
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def __init__(
]

optkwargs_SIRstockflow_param = {
"qoi": lambda x: obs_nday_average_qoi(x, ["I_state"], 1),
"risk_bound": 300.0,
"qoi": [lambda x: obs_nday_average_qoi(x, ["I_state"], 1)],
"risk_bound": [300.0],
"static_parameter_interventions": param_value_objective(
param_name=["p_cbeta"],
param_value=[lambda x: torch.tensor([x])],
Expand All @@ -108,8 +108,8 @@ def __init__(
}

optkwargs_SIRstockflow_time = {
"qoi": lambda x: obs_nday_average_qoi(x, ["I_state"], 1),
"risk_bound": 300.0,
"qoi": [lambda x: obs_nday_average_qoi(x, ["I_state"], 1)],
"risk_bound": [300.0],
"static_parameter_interventions": start_time_objective(
param_name=["p_cbeta"],
param_value=[torch.tensor([0.15])],
Expand All @@ -120,8 +120,8 @@ def __init__(
}

optkwargs_SIRstockflow_time_param = {
"qoi": lambda x: obs_nday_average_qoi(x, ["I_state"], 1),
"risk_bound": 300.0,
"qoi": [lambda x: obs_nday_average_qoi(x, ["I_state"], 1)],
"risk_bound": [300.0],
"static_parameter_interventions": start_time_param_value_objective(
param_name=["p_cbeta"],
),
Expand All @@ -141,8 +141,8 @@ def __init__(
param_value=torch.tensor([0.45]),
)
optkwargs_SEIRHD_paramtimeComb_maxQoI = {
"qoi": lambda x: obs_max_qoi(x, ["I_state"]),
"risk_bound": 3e5,
"qoi": [lambda x: obs_max_qoi(x, ["I_state"])],
"risk_bound": [3e5],
"static_parameter_interventions": intervention_func_combinator(
[static_parameter_interventions1, static_parameter_interventions2],
[1, 1],
Expand Down

0 comments on commit 9d58624

Please sign in to comment.