Skip to main content

Software library on stream based recommender systems

Project description

Build Status codecov

FEUP-DISS

This repository hosts the Software library on stream based recommender systems. This is part of my thesis dissertation done at the Faculty of Engineering of the University of Porto.

General Overview

general overview

Contents

This software library contains code regarding the implementation of recommendation systems on online platforms. It implements some algorithms, test metrics and data structures, so that it can process incoming information, denoted as a stream of ratings. Each rating can be implicit or explicit and is given from an user to an item. Explicit ratings are direct evaluations given by users, for example on a 1-10 scale. Implicit ratings can be interpreted as actions users took on items(for example a page click) which can be interpreted as the user liking that specific item. Each rating is a tuple : (user_id, item_id, rating). For implicit feedback the tuple becomes: (user_id, item_id)

Current implemented algorithms:

  1. Explicit User-Based Collaborative Filtering
  2. Explicit User-Based Clustering Collaborative Filtering
  3. Implicit User-Based Collaborative Filtering
  4. Implicit User-Based Clustering Collaborative Filtering
  5. Implicit Locality-Sensitive-Hashing Item-Based Collaborative Filtering
  6. Implicit Locality-Sensitive-Hashing User-Based Collaborative Filtering
  7. Implicit Matrix Factorization
  8. Explicit Matrix Factorization with matrix preprocessing
  9. Explicit Matrix Factorization without matrix preprocessing
  10. Implicit Item-Based Collaborative Filtering
  11. Implicit Item-Based Clustering Collaborative Filtering

Install

Currently the library is deployed on Pypi.

pip install increc

Dependencies

For development purposes:

  1. Python3.8
  2. Pipenv is required to run this on a virtual environment. pip install --user pipenv
  3. python -m pipenv lock -r > requirements.txt
  4. pipenv install -r requirements.txt

Run Tests

This library uses unittest for unit testing and flake8 as its linter.

  1. pipenv run python -m unittest discover -v -p "*_test.py"
  2. pipenv run flake8

Run Examples

Usage examples are located in the examples folder.

pipenv run python -m examples.collaborative_filtering.neighborhood.explicit_feedback.user_based.user_based_clustering "data_set"

Documentation

Documentation is created using Sphinx.

  1. pipenv run sphinx-apidoc -f -o docs/source algorithms
  2. pipenv run sphinx-apidoc -f -o docs/source stream
  3. pipenv run sphinx-apidoc -f -o docs/source data_structures
  4. pipenv run sphinx-apidoc -f -o docs/source utils
  5. pipenv run sphinx-apidoc -f -o docs/source graphic
  6. pipenv run sphinx-build -b html docs/source/ docs/build

https://marko50.github.io/increc-documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

increc-0.0.16.tar.gz (31.1 kB view details)

Uploaded Source

File details

Details for the file increc-0.0.16.tar.gz.

File metadata

  • Download URL: increc-0.0.16.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0

File hashes

Hashes for increc-0.0.16.tar.gz
Algorithm Hash digest
SHA256 def180728e65a27c271c67e9fe70bf289d6e3c322483391478256d824523af83
MD5 f37691e2e672a8885a1075913cb88167
BLAKE2b-256 b79b1e92f3111076f57d3ed8d038cd7e4d3d4783dacba8d12416ce449ce58613

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page