lenskit.data.types#
Basic data types used in data representations.
Attributes#
Types of feedback supported. |
|
NumPy entity identifier types. |
|
Allowable identifier types. |
|
NumPy arrays of identifiers. |
|
Sequences of identifiers. |
|
Classes#
A data frame column with possible aliases. |
|
A user-item pair of values. |
|
Representation of a range with a start and end. |
Module Contents#
- type lenskit.data.types.FeedbackType = Literal['explicit', 'implicit']#
Types of feedback supported.
- type lenskit.data.types.NPID = np.integer[Any] | np.str_ | np.bytes_ | np.object_#
NumPy entity identifier types.
- type lenskit.data.types.IDArray = np.ndarray[tuple[int], np.dtype[NPID]]#
NumPy arrays of identifiers.
- type lenskit.data.types.IDSequence = '\n Sequence[ID]\n | IDArray\n | pa.StringArray\n | pa.IntegerArray[Any]\n | pa.ChunkedArray[Any]\n | pd.Series[CoreID]\n '#
Sequences of identifiers.
- type lenskit.data.types.DF_FORMAT = Literal['numpy', 'pandas', 'torch']#
- type lenskit.data.types.MAT_FORMAT = Literal['scipy', 'torch', 'pandas', 'structure']#
- type lenskit.data.types.LAYOUT = Literal['csr', 'coo']#
- class lenskit.data.types.AliasedColumn#
A data frame column with possible aliases.
- Stability:
- Testing (see Stability Levels).