Skip to main content

A small library to compute fairness of recommender systems.

Project description

recsyslearn

https://img.shields.io/pypi/v/recsyslearn.svg

A small library to compute fairness of recommender systems.

Features

  • Compute Novelty of a recommender system based on its recommendations list.

  • Compute Coverage of a recommender system based on its recommendations list.

  • Compute Entropy of a recommender system based on its recommendations list.

  • Compute Kullback-Leibler divergence of a recommender system based on its recommendations list and the wanted target representation.

  • Compute Mutual Information of a recommender system based on its recommendations list.

  • Segment an implicit or explicit dataset in groups based on the activity of the users or on the popularity of the items.

Installation

To install the library simply run in the command-line:

pip install recsyslearn

Usage

You just need a recommendation list in the form of a user, item, rank, group Dataframe. The library will do the rest. If you don’t have the info about the groups, you can use the library itself to segment the dataset. The dataset has to be in the form of user, item, rank.

Known Issues

In this version of the library, the computation of the metrics for cross groups (user and item groups together) has not been implemented yet.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2022-06-18)

  • First release on PyPI.

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

recsyslearn-0.4.0a0.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

recsyslearn-0.4.0a0-py2.py3-none-any.whl (19.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file recsyslearn-0.4.0a0.tar.gz.

File metadata

  • Download URL: recsyslearn-0.4.0a0.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for recsyslearn-0.4.0a0.tar.gz
Algorithm Hash digest
SHA256 1e1d98b392613073b72392d8505d659e616e239d6f3570bd5dc7719e4a2140e0
MD5 5b1e7d5dabbb34fb5c0eeb2560e476c2
BLAKE2b-256 217fd05e669aae5ae2762262e9c6f45b6c7e7f959bf65465e3a9517af52ffe40

See more details on using hashes here.

File details

Details for the file recsyslearn-0.4.0a0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for recsyslearn-0.4.0a0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1733e5e54642fbd900e92ef5f98eb54a90ac158ba5506100c05bc275d075bf70
MD5 a6281fae94e38ad78c5b32ed48f96609
BLAKE2b-256 1d58763d251a94e059dbb24f76f8df61aa3fcfe4a5ba97ed3a603da28371622e

See more details on using hashes here.

Supported by

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