utils.batching
Utilities for batched estimators.
select(mask, new, old)
¶
Take the batch elements of new where mask is True and of old otherwise.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mask
|
Array
|
Boolean array with the batch shape of the data, e.g., (n_drones,). |
required |
new
|
T
|
Pytree of arrays with leading batch dimensions. |
required |
old
|
T
|
Pytree with the same structure and shapes as new. |
required |