lenskit.data.ItemListCollector#

class lenskit.data.ItemListCollector(*args, **kwargs)#

Bases: Protocol

Collect item lists with associated keys, as in ItemListCollection.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

add(list, *fields, **kwfields)

Add a single item list to this list.

add_from(other, **fields)

Add all collection from another collection to this collection.

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

Add a single item list to this list.

Parameters:
abstract 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: