lenskit.parallel.sequential#

Classes

InProcessOpInvoker(model, func[, progress])

class lenskit.parallel.sequential.InProcessOpInvoker(model, func, progress=None)#

Bases: ModelOpInvoker[A, R], Generic[M, A, R]

Parameters:
map(tasks)#

Apply the configured function to the model and iterables. This is like map(), except it supplies the invoker’s model as the first object to func.

Parameters:
  • iterables – Iterables of arguments to provide to the function.

  • tasks (Iterable[A])

Returns:

An iterable of the results.

Return type:

iterable