streamsight.preprocessing

Filters

The filter module contains classes that are used to filter the data before transforming the data into an InteractionMatrix object.

Filter()

Abstract baseclass for filter implementations

MinItemsPerUser(min_items_per_user, item_ix, ...)

Require that a user has interacted with a minimum number of items.

MinUsersPerItem(min_users_per_item, item_ix, ...)

Require that a minimum number of users has interacted with an item.

Preprocessor

The preprocessor class allows the programmer to add the filters for data preprocessing before transforming the data into an InteractionMatrix object. The preprocessor class after applying the filters, updates the item and user ID mappings into internal ID to reduce the computation load and allows for easy representation of the matrix.

DataFramePreprocessor(item_ix, user_ix, ...)

Preprocesses a pandas DataFrame into an InteractionMatrix object.