Runner
Run the simulation for one or more replications.
Usage
Runner(config)Methods
| Name | Description |
|---|---|
| __init__() | Create instance of Runner. |
| run_reps() | Run replications, as defined by config.n_reps. |
| run_single() | Run a single replication and return results. |
__init__()
Create instance of Runner.
Usage
__init__(config)Parameters
config: object- Configuration object containing model parameters.
run_reps()
Run replications, as defined by config.n_reps.
Usage
run_reps()Returns
dict-
Dictionary with three DataFrames:
- “patients”: concatenated per-patient results across runs.
- “run”: summary of results for each run by response category.
- “overall”: summary of results across runs by response category.
run_single()
Run a single replication and return results.
Usage
run_single(run_number)Parameters
run_number: int- Simulation run identifier.
Returns
dict-
Dictionary with two DataFrames:
- “patients”: per-patient results for the run.
- “run”: summary of results for run by response category.