lenskit.parallel.sequential#

Classes

InProcessOpInvoker(model, func)

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

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