transformer_rankers.utils.utils.acumulate_list

transformer_rankers.utils.utils.acumulate_list(l: List[float], acum_step: int) → List[List[float]][source]

Splits a list every acum_step and generates a resulting matrix

Parameters

l – List of floats

Returns: List of list of floats divided every acum_step