lenskit.batch.BatchResultRow#

class lenskit.batch.BatchResultRow#

Bases: NamedTuple

Results for a single query in the batch recommendations.

key: lenskit.data.GenericKey#

The key (e.g. user ID) associated with this result row.

outputs: dict[str, object]#

The outputs associated with this result row.

key_dict()#

Get the row’s key as a dictionary.

Return type:

dict[str, lenskit.data.ID]