A LearnerTorch uses the batch_size parameter for both training and prediction, unless
batch_size_predict is set, which then takes precedence during prediction.
This helper resolves the batch size for one phase and is useful when overwriting the private
.dataloader() method of a LearnerTorch.
Arguments
- param_vals
(named
list())
The parameter values, containingbatch_sizeand/orbatch_size_predict.- phase
(
character(1))
Either"train"or"predict".