Skip to content

Commit

Permalink
Revert "update optimize documentation for definition of static_parame…
Browse files Browse the repository at this point in the history
…ter_intervention"

This reverts commit 11cdaa9.
  • Loading branch information
anirban-chaudhuri committed Mar 21, 2024
1 parent ff88c0d commit bb26d94
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pyciemss/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,11 +791,11 @@ def optimize(
- A callable function defining the quantity of interest to optimize over.
risk_bounds: float
- The threshold on the risk constraint.
static_parameter_interventions: Callable[[torch.Tensor], Dict[float, Dict[str, Intervention]]]
- A callable function of static parameter interventions to optimize over.
- The callable functions are created using the provided templates:
- param_value_objective(): creates a static parameter intervention when optimizing over (multiple) parameter values
- start_time_objective(): creates a static parameter intervention when optimizing over (multiple) start times for different parameter
static_parameter_interventions: Dict[torch.Tensor, str]
- A dictionary of the form {intervention_time: parameter_name}
of static parameter interventions to optimize over.
- Each key is the time at which the intervention is applied.
- Each value is a string with the intervention parameter name.
objfun: Callable
- The objective function defined as a callable function definition.
- E.g., to minimize the absolute value of intervention parameters use lambda x: np.sum(np.abs(x))
Expand Down

0 comments on commit bb26d94

Please sign in to comment.