lenskit.data.types ================== .. py:module:: lenskit.data.types .. autoapi-nested-parse:: Basic data types used in data representations. Attributes ---------- .. autoapisummary:: lenskit.data.types.FeedbackType lenskit.data.types.NPID lenskit.data.types.ID lenskit.data.types.IDArray lenskit.data.types.IDSequence lenskit.data.types.NPMatrix lenskit.data.types.NPVector lenskit.data.types.DF_FORMAT lenskit.data.types.MAT_FORMAT lenskit.data.types.LAYOUT Classes ------- .. toctree:: :hidden: /api/lenskit/data/types/AliasedColumn /api/lenskit/data/types/UIPair /api/lenskit/data/types/Extent .. autoapisummary:: lenskit.data.types.AliasedColumn lenskit.data.types.UIPair lenskit.data.types.Extent Module Contents --------------- .. py:type:: FeedbackType :canonical: Literal['explicit', 'implicit'] Types of feedback supported. .. py:type:: NPID :canonical: np.integer[Any] | np.str_ | np.bytes_ | np.object_ NumPy entity identifier types. .. py:type:: ID :canonical: CoreID | NPID Allowable identifier types. .. py:type:: IDArray :canonical: np.ndarray[tuple[int], np.dtype[NPID]] NumPy arrays of identifiers. .. py:type:: IDSequence :canonical: '\n Sequence[ID]\n | IDArray\n | pa.StringArray\n | pa.IntegerArray[Any]\n | pa.ChunkedArray[Any]\n | pd.Series[CoreID]\n ' Sequences of identifiers. .. py:type:: NPMatrix :canonical: np.ndarray[tuple[int, int], np.dtype[V]] .. py:type:: NPVector :canonical: np.ndarray[tuple[int], np.dtype[V]] .. py:type:: DF_FORMAT :canonical: Literal['numpy', 'pandas', 'torch'] .. py:type:: MAT_FORMAT :canonical: Literal['scipy', 'torch', 'pandas', 'structure'] .. py:type:: LAYOUT :canonical: Literal['csr', 'coo']