ergminer.sim
ergminer.play_out(erg, n=10, sim_time=5000.0, seed=42, output_dir=None, verbose=False)
Simulate erg for n independent replications and return the combined log.
The ERG is serialised to a temporary ERGML file, then each replication is
run using ERGPlayback. Each run's events are tagged with _erg_run
(1-indexed) so that per-run analysis remains possible on the combined
DataFrame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
erg
|
'ERG'
|
The |
required |
n
|
int
|
Number of independent simulation replications. |
10
|
sim_time
|
float
|
Simulation horizon (same units as the source log timestamps). |
5000.0
|
seed
|
int
|
Base random seed. Run i uses |
42
|
output_dir
|
Optional[str]
|
If provided, individual run CSVs and a combined CSV are saved here. |
None
|
verbose
|
bool
|
Print per-run progress to stdout. |
False
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
Combined |
DataFrame
|
|
DataFrame
|
|