dataeval.utils.data.collate.numpy_collate_fn¶
- dataeval.utils.data.collate.numpy_collate_fn(batch_data_as_singles)¶
A collate function that takes a batch of individual data points in the format (input, target, metadata) and returns the batched input as a single NumPy array with two lists: the target batch, and the metadata batch. The inputs must be homogeneous arrays.