You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defroundrobin(*iterables):
"roundrobin('ABC', 'D', 'EF') --> A D E B F C"# Recipe credited to George Sakkispending=len(iterables)
nexts=cycle(iter(it).nextforitiniterables)
whilepending:
try:
fornextinnexts:
yieldnext()
exceptStopIteration:
pending-=1nexts=cycle(islice(nexts, pending))
The pipeline object allows for cascading of multiple deformers into a single chain.
Sometimes, we just want to apply a set of deformations independently, but there's no direct way to do that currently.
It would be easy to implement something analogous to a sklearn feature union that does round-robin sampling from each deformer.
The text was updated successfully, but these errors were encountered: