base
deepdrivewe.recyclers.base ¶
Recycling algorithms for the weighted ensemble.
Recycler ¶
Bases: ABC
Recycler for the weighted ensemble.
Source code in deepdrivewe/recyclers/base.py
__init__ ¶
Initialize the recycler.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
basis_states
|
BasisStates
|
The basis states for the weighted ensemble. |
required |
recycle_simulations ¶
recycle_simulations(
cur_sims: list[SimMetadata],
next_sims: list[SimMetadata],
) -> tuple[list[SimMetadata], list[SimMetadata]]
Recycle the simulations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cur_sims
|
list[SimMetadata]
|
The list of current simulations. |
required |
next_sims
|
list[SimMetadata]
|
The list of next simulations. |
required |
Returns:
| Type | Description |
|---|---|
list[SimMetadata]
|
The updated list of current simulations. |
list[SimMetadata]
|
The updated list of next simulations. |