draugr.python_utilities.generators.recycling_generator

Created on 28/10/2019

Functions

recycle(iterable)

loops an iterable like itertools.cycle, but in a random order (Permutation) everytime the iterable is exhausted

batched_recycle(sized[, batch_size])

Batches and re-cycles an array with a different permutation