lenskit.data.ItemListCollector#

class lenskit.data.ItemListCollector#

Bases: Protocol

Collect item lists with associated keys, as in ItemListCollection.

abstractmethod add(list, *fields, **kwfields)#

Add a single item list to this list.

Parameters:
abstractmethod add_from(other, **fields)#

Add all collection from another collection to this collection. If field values are supplied, they are used to supplement or overwrite the keys in other; a common use case is to add results from multiple recommendation runs and save them a single field.

Parameters: