langtest.utils.checkpoints.divide_into_batches#

divide_into_batches(data: list, batch_size: int) dict#

Divide a list into batches of a specified size.

Parameters: - data: The list to be divided. - batch_size: The size of each batch.

Returns: A dictionary with batch numbers as keys and batches as values.