Weights
popinn.FixedWeights
¤
Static (non-trainable) per-term loss weights.
Fields:
values(dict): Mapping from term name to its scalar weight, keyed by the set of correspondingResidualTerm.namestrings.
Source code in src/popinn/loss.py
combine(residuals)
¤
Combine per-term scalar losses into the weighted sum.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
residuals
|
dict
|
A mapping from each |
required |
Returns:
| Type | Description |
|---|---|
jaxtyping.Float[jax.Array, '']
|
The weighted sum over all loss terms. |