Launch a mock training to find a good batch size to minimize training time.
bs_find(
object,
lr,
num_it = NULL,
n_batch = 5,
simulate_multi_gpus = TRUE,
show_plot = TRUE
)
model/learner
learning rate
number of iterations
number of batches
simulate on multi gpus or not
show plot or not
However, it may not be a good batch size to minimize the validation loss. A good batch size is where the Simple Noise Scale converge ignoring the small growing trend with the number of iterations if exists. The optimal batch size is about an order the magnitud where Simple Noise scale converge. Typically, the optimal batch size in image classification problems will be 2-3 times lower where