skoot.utils.chunk

skoot.utils.chunk(v, n)[source][source]

Chunk a vector into k roughly equal parts.

Parameters:

v : array-like, shape=(n_samples,)

The vector of values.

n : int

The number of chunks to produce.