Create a shared mutable weight container for deep supervision loss weighting.
Value
An R environment with a single element $values containing
the current weight vector. Passed by reference, so updates made by
callback_ds_weight_decay are immediately visible to ds_loss.
Details
Creates an R environment that holds the current per-output loss weights for
deep supervision training. Pass the returned object to both
defineUnifiedFocalLossDS (via the weight_env argument) and
callback_ds_weight_decay so the callback can update the weights the
loss function reads each epoch.
