streamsight.matrix

Interaction Matrix

The InteractionMatrix class is used to create an interaction matrix from the dataset loaded. The interaction matrix stores a dataframe under the hood and provides functionality to convert the dataframe to a CSR matrix and other operations which are useful for building recommendation systems.

InteractionMatrix(df, item_ix, user_ix, ...)

Matrix of interaction data between users and items.

Utils

Below are some of the utility classes and functions that are used in the matrix module. These provides functionality for the matrix module and for use cases in other modules.

to_csr_matrix(X[, binary])

Convert a matrix-like object to a scipy csr_matrix.

ItemUserBasedEnum(value[, names, module, ...])

Enum class for item and user based properties.

TimestampAttributeMissingError([message])

Error raised when timestamp attribute is missing.