A small library to compute fairness of recommender systems.
Project description
recsyslearn
A small library to compute fairness of recommender systems.
Free software: GNU General Public License v3
Documentation: https://recsyslearn.readthedocs.io.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e1d98b392613073b72392d8505d659e616e239d6f3570bd5dc7719e4a2140e0 |
|
MD5 | 5b1e7d5dabbb34fb5c0eeb2560e476c2 |
|
BLAKE2b-256 | 217fd05e669aae5ae2762262e9c6f45b6c7e7f959bf65465e3a9517af52ffe40 |
File details
Details for the file recsyslearn-0.4.0a0-py2.py3-none-any.whl
.
File metadata
- Download URL: recsyslearn-0.4.0a0-py2.py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1733e5e54642fbd900e92ef5f98eb54a90ac158ba5506100c05bc275d075bf70 |
|
MD5 | a6281fae94e38ad78c5b32ed48f96609 |
|
BLAKE2b-256 | 1d58763d251a94e059dbb24f76f8df61aa3fcfe4a5ba97ed3a603da28371622e |