lenskit.data.UserIDKey#

class lenskit.data.UserIDKey(user_id)#

Bases: NamedTuple

Key type for user IDs. This is used for item list collections that are keyed by user ID, a common setup for recommendation runs and

Parameters:

user_id (int | str | bytes | integer[Any] | str_ | bytes_ | object_)

__init__()#

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

user_id

Alias for field number 0

user_id: int | str | bytes | integer[Any] | str_ | bytes_ | object_#

Alias for field number 0