lenskit.parallel.chunking#

Support for computing chunks for parallel computation.

Classes

WorkChunks(total, chunk_size, chunk_count)

The chunking configuration for parallel work.

class lenskit.parallel.chunking.WorkChunks(total, chunk_size, chunk_count)#

Bases: NamedTuple

The chunking configuration for parallel work.

Parameters:
  • total (int)

  • chunk_size (int)

  • chunk_count (int)

total: int#

Alias for field number 0

chunk_size: int#

Alias for field number 1

chunk_count: int#

Alias for field number 2

classmethod create(njobs)#

Compute the chunk size for parallel model training.