high
deepdrivewe.resamplers.high ¶
Split the simulation with the highest progress coordinate.
SplitHighResampler ¶
Bases: Resampler
Split the simulation with the highest progress coordinate.
Source code in deepdrivewe/resamplers/high.py
__init__ ¶
Initialize the resampler.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num_resamples
|
int
|
The number of resamples to perform (i.e., the number of splits and merges to perform in each iteration). Default is 1. |
1
|
n_split
|
int
|
The number of simulations to split each simulation into. Default is 2. |
2
|
pcoord_idx
|
int
|
The index of the progress coordinate to use for splitting and merging. Only applicable if a multi-dimensional pcoord is used, will choose the specified index of the pcoord for spitting and merging. Default is 0. |
0
|
Source code in deepdrivewe/resamplers/high.py
split ¶
Split the simulation with the highest progress coordinate.
Source code in deepdrivewe/resamplers/high.py
merge ¶
Merge the simulations with the highest progress coordinate.
Source code in deepdrivewe/resamplers/high.py
resample ¶
resample(
cur_sims: list[SimMetadata],
next_sims: list[SimMetadata],
) -> tuple[list[SimMetadata], list[SimMetadata]]
Resample the weighted ensemble.