View source: R/paramset_torchlearner.R
| get_batch_size | R Documentation |
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.
get_batch_size(param_vals, phase)
param_vals |
(named |
phase |
( |
(integer(1) or NULL)
The batch size for the given phase or NULL if none is set.
get_batch_size(list(batch_size = 16), "train")
get_batch_size(list(batch_size = 16, batch_size_predict = 32), "predict")
get_batch_size(list(batch_size_predict = 32), "train")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.