lenskit.parallel.sequential#
Classes
|
- class lenskit.parallel.sequential.InProcessOpInvoker(model, func)#
Bases:
ModelOpInvoker
[A
,R
],Generic
[M
,A
,R
]- Parameters:
model (M)
func (Callable[[M, A], R])
- 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 tofunc
.- Parameters:
iterables – Iterables of arguments to provide to the function.
tasks (Iterable[A])
- Returns:
An iterable of the results.
- Return type:
iterable