LibRecommender


NameLibRecommender JSON
Version 1.5.1 PyPI version JSON
download
home_pagehttps://github.com/massquantity/LibRecommender
SummaryVersatile end-to-end recommender system.
upload_time2024-06-20 04:02:42
maintainerNone
docs_urlNone
authormassquantity
requires_python>=3.6
licenseMIT
keywords collaborative filtering recommender system
VCS
bugtrack_url
requirements numpy scipy pandas scikit-learn tensorflow torch gensim tqdm nmslib
Travis-CI No Travis.
coveralls test coverage
            # LibRecommender

[![Build](https://img.shields.io/github/actions/workflow/status/massquantity/LibRecommender/wheels.yml?branch=master&logo=github)](https://github.com/massquantity/LibRecommender/actions/workflows/wheels.yml)
[![CI](https://github.com/massquantity/LibRecommender/actions/workflows/ci.yml/badge.svg)](https://github.com/massquantity/LibRecommender/actions/workflows/ci.yml)
[![Codecov](https://img.shields.io/codecov/c/github/massquantity/LibRecommender?color=ffdfba&logo=codecov&logoColor=%2300FC87CD)](https://app.codecov.io/gh/massquantity/LibRecommender)
[![pypi](https://img.shields.io/pypi/v/LibRecommender?color=blue)](https://pypi.org/project/LibRecommender/)
[![Downloads](https://static.pepy.tech/personalized-badge/librecommender?period=total&units=international_system&left_color=grey&right_color=lightgrey&left_text=Downloads)](https://pepy.tech/project/librecommender)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/860f0cb5339c41fba9bee5770d09be47)](https://www.codacy.com/gh/massquantity/LibRecommender/dashboard?utm_source=github.com&utm_medium=referral&utm_content=massquantity/LibRecommender&utm_campaign=Badge_Grade)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)
[![Documentation Status](https://readthedocs.org/projects/librecommender/badge/?version=latest)](https://librecommender.readthedocs.io/en/latest/?badge=latest)
[![python versions](https://img.shields.io/pypi/pyversions/LibRecommender?logo=python&logoColor=ffffba)](https://pypi.org/project/LibRecommender/)
[![License](https://img.shields.io/github/license/massquantity/LibRecommender?color=ff69b4)](https://github.com/massquantity/LibRecommender/blob/master/LICENSE)


## Overview

**LibRecommender** is an easy-to-use recommender system focused on end-to-end recommendation process. It contains a training([libreco](https://github.com/massquantity/LibRecommender/tree/master/libreco)) and serving([libserving](https://github.com/massquantity/LibRecommender/tree/master/libserving)) module to let users quickly train and deploy different kinds of recommendation models.

**The main features are:**

+ Implements a number of popular recommendation algorithms such as FM, DIN, LightGCN etc. See [full algorithm list](#references).
+ A hybrid recommender system, which allows user to use either collaborative-filtering or content-based features. New features can be added on the fly.
+ Low memory usage, automatically converts categorical and multi-value categorical features to sparse representation.
+ Supports training for both explicit and implicit datasets, as well as negative sampling on implicit data.
+ Provides end-to-end workflow, i.e. data handling / preprocessing -> model training -> evaluate -> save/load -> serving.
+ Supports cold-start prediction and recommendation.
+ Supports dynamic feature and sequence recommendation.
+ Provides unified and friendly API for all algorithms. 
+ Easy to retrain model with new users/items from new data.



## Usage

#### _pure collaborative-filtering example_ : 

```python
import numpy as np
import pandas as pd
from libreco.data import random_split, DatasetPure
from libreco.algorithms import LightGCN  # pure data, algorithm LightGCN
from libreco.evaluation import evaluate

data = pd.read_csv("examples/sample_data/sample_movielens_rating.dat", sep="::",
                   names=["user", "item", "label", "time"])

# split whole data into three folds for training, evaluating and testing
train_data, eval_data, test_data = random_split(data, multi_ratios=[0.8, 0.1, 0.1])

train_data, data_info = DatasetPure.build_trainset(train_data)
eval_data = DatasetPure.build_evalset(eval_data)
test_data = DatasetPure.build_testset(test_data)
print(data_info)  # n_users: 5894, n_items: 3253, data sparsity: 0.4172 %

lightgcn = LightGCN(
    task="ranking",
    data_info=data_info,
    loss_type="bpr",
    embed_size=16,
    n_epochs=3,
    lr=1e-3,
    batch_size=2048,
    num_neg=1,
    device="cuda",
)
# monitor metrics on eval data during training
lightgcn.fit(
    train_data,
    neg_sampling=True,
    verbose=2,
    eval_data=eval_data,
    metrics=["loss", "roc_auc", "precision", "recall", "ndcg"],
)

# do final evaluation on test data
evaluate(
    model=lightgcn,
    data=test_data,
    neg_sampling=True,
    metrics=["loss", "roc_auc", "precision", "recall", "ndcg"],
)

# predict preference of user 2211 to item 110
lightgcn.predict(user=2211, item=110)
# recommend 7 items for user 2211
lightgcn.recommend_user(user=2211, n_rec=7)

# cold-start prediction
lightgcn.predict(user="ccc", item="not item", cold_start="average")
# cold-start recommendation
lightgcn.recommend_user(user="are we good?", n_rec=7, cold_start="popular")
```

#### _include features example_ : 

```python
import numpy as np
import pandas as pd
from libreco.data import split_by_ratio_chrono, DatasetFeat
from libreco.algorithms import YouTubeRanking  # feat data, algorithm YouTubeRanking

data = pd.read_csv("examples/sample_data/sample_movielens_merged.csv", sep=",", header=0)
# split into train and test data based on time
train_data, test_data = split_by_ratio_chrono(data, test_size=0.2)

# specify complete columns information
sparse_col = ["sex", "occupation", "genre1", "genre2", "genre3"]
dense_col = ["age"]
user_col = ["sex", "age", "occupation"]
item_col = ["genre1", "genre2", "genre3"]

train_data, data_info = DatasetFeat.build_trainset(
    train_data, user_col, item_col, sparse_col, dense_col
)
test_data = DatasetFeat.build_testset(test_data)
print(data_info)  # n_users: 5962, n_items: 3226, data sparsity: 0.4185 %

ytb_ranking = YouTubeRanking(
    task="ranking",
    data_info=data_info,
    embed_size=16,
    n_epochs=3,
    lr=1e-4,
    batch_size=512,
    use_bn=True,
    hidden_units=(128, 64, 32),
)
ytb_ranking.fit(
    train_data,
    neg_sampling=True,
    verbose=2,
    shuffle=True,
    eval_data=test_data,
    metrics=["loss", "roc_auc", "precision", "recall", "map", "ndcg"],
)

# predict preference of user 2211 to item 110
ytb_ranking.predict(user=2211, item=110)
# recommend 7 items for user 2211
ytb_ranking.recommend_user(user=2211, n_rec=7)

# cold-start prediction
ytb_ranking.predict(user="ccc", item="not item", cold_start="average")
# cold-start recommendation
ytb_ranking.recommend_user(user="are we good?", n_rec=7, cold_start="popular")
```

## Data Format

JUST normal data format, each line represents a sample. One thing is important, the model assumes that `user`, `item`, and `label` column index are 0, 1, and 2, respectively. You may wish to change the column order if that's not the case. Take for Example, the `movielens-1m` dataset:

> 1::1193::5::978300760<br>
> 1::661::3::978302109<br>
> 1::914::3::978301968<br>
> 1::3408::4::978300275

Besides, if you want to use some other meta features (e.g., age, sex, category etc.),  you need to tell the model which columns are [`sparse_col`, `dense_col`, `user_col`, `item_col`], which means all features must be in a same table. See above `YouTubeRanking` for example.

**Also note that your data should not contain missing values.**



## Documentation

The tutorials and API documentation are hosted on [librecommender.readthedocs.io](https://librecommender.readthedocs.io/en/latest/).

The example scripts are under [examples/](https://github.com/massquantity/LibRecommender/tree/master/examples) folder.



## Installation & Dependencies 

From pypi : &nbsp;

```shell
$ pip install -U LibRecommender
```

Build from source:

```shell
$ git clone https://github.com/massquantity/LibRecommender.git
$ cd LibRecommender
$ pip install .
```


#### Basic Dependencies for [`libreco`](https://github.com/massquantity/LibRecommender/tree/master/libreco):

- Python >= 3.6
- TensorFlow >= 1.15, < 2.16
- PyTorch >= 1.10
- Numpy >= 1.19.5
- Pandas >= 1.0.0
- Scipy >= 1.2.1, < 1.13.0
- scikit-learn >= 0.20.0
- gensim >= 4.0.0
- tqdm
- [nmslib](https://github.com/nmslib/nmslib) (optional, used in approximate similarity searching. See [Embedding](https://librecommender.readthedocs.io/en/latest/user_guide/embedding.html))
- [DGL](https://github.com/dmlc/dgl) (optional, used in GraphSage and PinSage. See [Implementation Details](https://librecommender.readthedocs.io/en/latest/internal/implementation_details.html#pinsage))
- Cython >= 0.29.0, < 3 (optional, for building from source)

If you are using Python 3.6, you also need to install [dataclasses](https://github.com/ericvsmith/dataclasses), which was first introduced in Python 3.7.

LibRecommender has been tested under TensorFlow 1.15, 2.6, 2.10 and 2.12. If you encounter any problem during running, feel free to open an issue.

**Tensorflow [2.16](https://github.com/tensorflow/tensorflow/releases/tag/v2.16.1) starts using Keras 3.0, so tf1 syntax is no longer supported.** Now the supported version is 1.15 - 2.15.

**Known issue**:
+ Sometimes one may encounter errors like `ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject`. In this case try upgrading numpy, and version 1.22.0 or higher is probably a safe option.
+ When saving a TensorFlow model for serving, you might encounter the error message: `Fatal Python error: Segmentation fault (core dumped)`.
  This issue is most likely related to the `protobuf` library, so you should follow the official recommended [version](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/pip_package/setup.py#L98) 
  based on your local tensorflow version. In general, it's advisable to use protobuf < 4.24.0.

The table below shows some compatible version combinations: 

| Python |         Numpy          |   TensorFlow    |          OS           |
|:------:|:----------------------:|:---------------:|:---------------------:|
|  3.6   |         1.19.5         |    1.15, 2.5    | linux, windows, macos |
|  3.7   |     1.20.3, 1.21.6     | 1.15, 2.6, 2.10 | linux, windows, macos |
|  3.8   |     1.22.4, 1.23.4     | 2.6, 2.10, 2.12 | linux, windows, macos |
|  3.9   |     1.22.4, 1.23.4     | 2.6, 2.10, 2.12 | linux, windows, macos |
|  3.10  | 1.22.4, 1.23.4, 1.24.2 |   2.10, 2.12    | linux, windows, macos |
|  3.11  |     1.23.4, 1.24.2     |      2.12       | linux, windows, macos |


#### Optional Dependencies for [`libserving`](https://github.com/massquantity/LibRecommender/tree/master/libserving):

+ Python >= 3.7
+ sanic >= 22.3
+ requests
+ aiohttp
+ pydantic
+ [ujson](https://github.com/ultrajson/ultrajson)
+ [redis](<https://redis.io/>)
+ [redis-py](https://github.com/andymccurdy/redis-py) >= 4.2.0
+ [faiss](https://github.com/facebookresearch/faiss) >= 1.5.2
+ [TensorFlow Serving](<https://github.com/tensorflow/serving>) == 2.8.2

## Docker
One can also use the library in a docker container without installing dependencies, see [Docker](https://github.com/massquantity/LibRecommender/tree/master/docker).

## References

|     Algorithm     | Category<sup><a href="#fn1" id="ref1">1</a></sup> |       Backend       | Sequence<sup><a href="#fn2" id="ref2">2</a></sup> | Graph<sup><a href="#fn3" id="ref3">3</a></sup> | Embedding<sup><a href="#fn4" id="ref4">4</a></sup> | Paper                                                                                                                                                                                                                                                                                                                                                            |
|:-----------------:|:-------------------------------------------------:|:-------------------:|:-------------------------------------------------:|:----------------------------------------------:|:--------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|  userCF / itemCF  |                       pure                        |    Cython, Rust     |                                                   |                                                |                                                    | [Item-Based Collaborative Filtering](http://www.ra.ethz.ch/cdstore/www10/papers/pdf/p519.pdf)                                                                                                                                                                                                                                                                    |
|        SVD        |                       pure                        |     TensorFlow1     |                                                   |                                                |                 :heavy_check_mark:                 | [Matrix Factorization Techniques](https://datajobs.com/data-science-repo/Recommender-Systems-[Netflix].pdf)                                                                                                                                                                                                                                                      |
|       SVD++       |                       pure                        |     TensorFlow1     |                                                   |                                                |                 :heavy_check_mark:                 | [Factorization Meets the Neighborhood](https://dl.acm.org/citation.cfm?id=1401944)                                                                                                                                                                                                                                                                               |
|        ALS        |                       pure                        |       Cython        |                                                   |                                                |                 :heavy_check_mark:                 | 1. [Matrix Completion via Alternating Least Square(ALS)](https://stanford.edu/~rezab/classes/cme323/S15/notes/lec14.pdf)  <br>2. [Collaborative Filtering for Implicit Feedback Datasets](http://yifanhu.net/PUB/cf.pdf)  <br>3. [Conjugate Gradient for Implicit Feedback](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.379.6473&rep=rep1&type=pdf) |
|        NCF        |                       pure                        |     TensorFlow1     |                                                   |                                                |                                                    | [Neural Collaborative Filtering](https://arxiv.org/pdf/1708.05031.pdf)                                                                                                                                                                                                                                                                                           |
|        BPR        |                       pure                        | Cython, TensorFlow1 |                                                   |                                                |                 :heavy_check_mark:                 | [Bayesian Personalized Ranking](https://arxiv.org/ftp/arxiv/papers/1205/1205.2618.pdf)                                                                                                                                                                                                                                                                           |
|    Wide & Deep    |                       feat                        |     TensorFlow1     |                                                   |                                                |                                                    | [Wide & Deep Learning for Recommender Systems](https://arxiv.org/pdf/1606.07792.pdf)                                                                                                                                                                                                                                                                             |
|        FM         |                       feat                        |     TensorFlow1     |                                                   |                                                |                                                    | [Factorization Machines](https://www.csie.ntu.edu.tw/~b97053/paper/Rendle2010FM.pdf)                                                                                                                                                                                                                                                                             |
|      DeepFM       |                       feat                        |     TensorFlow1     |                                                   |                                                |                                                    | [DeepFM](https://arxiv.org/pdf/1703.04247.pdf)                                                                                                                                                                                                                                                                                                                   |
| YouTubeRetrieval  |                       feat                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                 :heavy_check_mark:                 | [Deep Neural Networks for YouTube Recommendations](<https://static.googleusercontent.com/media/research.google.com/zh-CN//pubs/archive/45530.pdf>)                                                                                                                                                                                                               |
|  YouTubeRanking   |                       feat                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                                                    | [Deep Neural Networks for YouTube Recommendations](<https://static.googleusercontent.com/media/research.google.com/zh-CN//pubs/archive/45530.pdf>)                                                                                                                                                                                                               |
|      AutoInt      |                       feat                        |     TensorFlow1     |                                                   |                                                |                                                    | [AutoInt](https://arxiv.org/pdf/1810.11921.pdf)                                                                                                                                                                                                                                                                                                                  |
|        DIN        |                       feat                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                                                    | [Deep Interest Network](https://arxiv.org/pdf/1706.06978.pdf)                                                                                                                                                                                                                                                                                                    |
|     Item2Vec      |                       pure                        |          /          |                :heavy_check_mark:                 |                                                |                 :heavy_check_mark:                 | [Item2Vec](https://arxiv.org/pdf/1603.04259.pdf)                                                                                                                                                                                                                                                                                                                 |
| RNN4Rec / GRU4Rec |                       pure                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                 :heavy_check_mark:                 | [Session-based Recommendations with Recurrent Neural Networks](https://arxiv.org/pdf/1511.06939.pdf)                                                                                                                                                                                                                                                             |
|       Caser       |                       pure                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                 :heavy_check_mark:                 | [Personalized Top-N Sequential Recommendation via Convolutional](https://arxiv.org/pdf/1809.07426.pdf)                                                                                                                                                                                                                                                           |
|      WaveNet      |                       pure                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                 :heavy_check_mark:                 | [WaveNet: A Generative Model for Raw Audio](https://arxiv.org/pdf/1609.03499.pdf)                                                                                                                                                                                                                                                                                |
|     DeepWalk      |                       pure                        |          /          |                                                   |               :heavy_check_mark:               |                 :heavy_check_mark:                 | [DeepWalk](https://arxiv.org/pdf/1403.6652.pdf)                                                                                                                                                                                                                                                                                                                  |
|       NGCF        |                       pure                        |       PyTorch       |                                                   |               :heavy_check_mark:               |                 :heavy_check_mark:                 | [Neural Graph Collaborative Filtering](https://arxiv.org/pdf/1905.08108.pdf)                                                                                                                                                                                                                                                                                     |
|     LightGCN      |                       pure                        |       PyTorch       |                                                   |               :heavy_check_mark:               |                 :heavy_check_mark:                 | [LightGCN](https://arxiv.org/pdf/2002.02126.pdf)                                                                                                                                                                                                                                                                                                                 |
|     GraphSage     |                       feat                        |    DGL, PyTorch     |                                                   |               :heavy_check_mark:               |                 :heavy_check_mark:                 | [Inductive Representation Learning on Large Graphs](https://arxiv.org/abs/1706.02216)                                                                                                                                                                                                                                                                            |
|      PinSage      |                       feat                        |    DGL, PyTorch     |                                                   |               :heavy_check_mark:               |                 :heavy_check_mark:                 | [Graph Convolutional Neural Networks for Web-Scale](https://arxiv.org/abs/1806.01973)                                                                                                                                                                                                                                                                            |
|     TwoTower      |                       feat                        |     TensorFlow1     |                                                   |                                                |                 :heavy_check_mark:                 | 1. [Sampling-Bias-Corrected Neural Modeling for Large Corpus Item](https://storage.googleapis.com/pub-tools-public-publication-data/pdf/6c8a86c981a62b0126a11896b7f6ae0dae4c3566.pdf)  <br>2. [Self-supervised Learning for Large-scale Item](https://arxiv.org/pdf/2007.12865.pdf)                                                                              |
|    Transformer    |                       feat                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                                                    | 1. [BST](https://arxiv.org/pdf/1905.06874.pdf)  <br>2. [Transformers4Rec](https://dl.acm.org/doi/10.1145/3460231.3474255) <br>3. [RMSNorm](https://arxiv.org/pdf/1910.07467.pdf)                                                                                                                                                                                 |
|        SIM        |                       feat                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                                                    | [SIM](https://arxiv.org/pdf/2006.05639.pdf)                                                                                                                                                                                                                                                                                                                      |
|       Swing       |                       pure                        |        Rust         |                                                   |                                                |                                                    | [Swing](https://arxiv.org/pdf/2010.05525)                                                                                                                                                                                                                                                                                                                        |

> <sup id="fn1">[1] **Category**: `pure` means collaborative-filtering algorithms which only use behavior data,  `feat` means other side-features can be included. <a href="#ref1" title="Jump back to footnote 1 in the text.">↩</a></sup>
> 
> <sup id="fn2">[2] **Sequence**: Algorithms that leverage user behavior sequence. <a href="#ref2" title="Jump back to footnote 2 in the text.">↩</a></sup>
> 
> <sup id="fn3">[3] **Graph**: Algorithms that leverage graph information, including Graph Embedding (GE) and Graph Neural Network (GNN) . <a href="#ref3" title="Jump back to footnote 3 in the text.">↩</a></sup>
> 
> <sup id="fn4">[4] **Embedding**: Algorithms that can generate final user and item embeddings. <a href="#ref4" title="Jump back to footnote 4 in the text.">↩</a></sup>



### Powered by

[![JetBrains Logo](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)](https://www.jetbrains.com/community/opensource/#support)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/massquantity/LibRecommender",
    "name": "LibRecommender",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "Collaborative Filtering, Recommender System",
    "author": "massquantity",
    "author_email": "massquantity <jinxin_madie@163.com>",
    "download_url": "https://files.pythonhosted.org/packages/db/16/68c554d973c51ff6ddc2a5843a968248eb8bb89d53441b79e46fe46a816e/librecommender-1.5.1.tar.gz",
    "platform": null,
    "description": "# LibRecommender\n\n[![Build](https://img.shields.io/github/actions/workflow/status/massquantity/LibRecommender/wheels.yml?branch=master&logo=github)](https://github.com/massquantity/LibRecommender/actions/workflows/wheels.yml)\n[![CI](https://github.com/massquantity/LibRecommender/actions/workflows/ci.yml/badge.svg)](https://github.com/massquantity/LibRecommender/actions/workflows/ci.yml)\n[![Codecov](https://img.shields.io/codecov/c/github/massquantity/LibRecommender?color=ffdfba&logo=codecov&logoColor=%2300FC87CD)](https://app.codecov.io/gh/massquantity/LibRecommender)\n[![pypi](https://img.shields.io/pypi/v/LibRecommender?color=blue)](https://pypi.org/project/LibRecommender/)\n[![Downloads](https://static.pepy.tech/personalized-badge/librecommender?period=total&units=international_system&left_color=grey&right_color=lightgrey&left_text=Downloads)](https://pepy.tech/project/librecommender)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/860f0cb5339c41fba9bee5770d09be47)](https://www.codacy.com/gh/massquantity/LibRecommender/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=massquantity/LibRecommender&amp;utm_campaign=Badge_Grade)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v1.json)](https://github.com/charliermarsh/ruff)\n[![Documentation Status](https://readthedocs.org/projects/librecommender/badge/?version=latest)](https://librecommender.readthedocs.io/en/latest/?badge=latest)\n[![python versions](https://img.shields.io/pypi/pyversions/LibRecommender?logo=python&logoColor=ffffba)](https://pypi.org/project/LibRecommender/)\n[![License](https://img.shields.io/github/license/massquantity/LibRecommender?color=ff69b4)](https://github.com/massquantity/LibRecommender/blob/master/LICENSE)\n\n\n## Overview\n\n**LibRecommender** is an easy-to-use recommender system focused on end-to-end recommendation process. It contains a training([libreco](https://github.com/massquantity/LibRecommender/tree/master/libreco)) and serving([libserving](https://github.com/massquantity/LibRecommender/tree/master/libserving)) module to let users quickly train and deploy different kinds of recommendation models.\n\n**The main features are:**\n\n+ Implements a number of popular recommendation algorithms such as FM, DIN, LightGCN etc. See [full algorithm list](#references).\n+ A hybrid recommender system, which allows user to use either collaborative-filtering or content-based features. New features can be added on the fly.\n+ Low memory usage, automatically converts categorical and multi-value categorical features to sparse representation.\n+ Supports training for both explicit and implicit datasets, as well as negative sampling on implicit data.\n+ Provides end-to-end workflow, i.e. data handling / preprocessing -> model training -> evaluate -> save/load -> serving.\n+ Supports cold-start prediction and recommendation.\n+ Supports dynamic feature and sequence recommendation.\n+ Provides unified and friendly API for all algorithms. \n+ Easy to retrain model with new users/items from new data.\n\n\n\n## Usage\n\n#### _pure collaborative-filtering example_ : \n\n```python\nimport numpy as np\nimport pandas as pd\nfrom libreco.data import random_split, DatasetPure\nfrom libreco.algorithms import LightGCN  # pure data, algorithm LightGCN\nfrom libreco.evaluation import evaluate\n\ndata = pd.read_csv(\"examples/sample_data/sample_movielens_rating.dat\", sep=\"::\",\n                   names=[\"user\", \"item\", \"label\", \"time\"])\n\n# split whole data into three folds for training, evaluating and testing\ntrain_data, eval_data, test_data = random_split(data, multi_ratios=[0.8, 0.1, 0.1])\n\ntrain_data, data_info = DatasetPure.build_trainset(train_data)\neval_data = DatasetPure.build_evalset(eval_data)\ntest_data = DatasetPure.build_testset(test_data)\nprint(data_info)  # n_users: 5894, n_items: 3253, data sparsity: 0.4172 %\n\nlightgcn = LightGCN(\n    task=\"ranking\",\n    data_info=data_info,\n    loss_type=\"bpr\",\n    embed_size=16,\n    n_epochs=3,\n    lr=1e-3,\n    batch_size=2048,\n    num_neg=1,\n    device=\"cuda\",\n)\n# monitor metrics on eval data during training\nlightgcn.fit(\n    train_data,\n    neg_sampling=True,\n    verbose=2,\n    eval_data=eval_data,\n    metrics=[\"loss\", \"roc_auc\", \"precision\", \"recall\", \"ndcg\"],\n)\n\n# do final evaluation on test data\nevaluate(\n    model=lightgcn,\n    data=test_data,\n    neg_sampling=True,\n    metrics=[\"loss\", \"roc_auc\", \"precision\", \"recall\", \"ndcg\"],\n)\n\n# predict preference of user 2211 to item 110\nlightgcn.predict(user=2211, item=110)\n# recommend 7 items for user 2211\nlightgcn.recommend_user(user=2211, n_rec=7)\n\n# cold-start prediction\nlightgcn.predict(user=\"ccc\", item=\"not item\", cold_start=\"average\")\n# cold-start recommendation\nlightgcn.recommend_user(user=\"are we good?\", n_rec=7, cold_start=\"popular\")\n```\n\n#### _include features example_ : \n\n```python\nimport numpy as np\nimport pandas as pd\nfrom libreco.data import split_by_ratio_chrono, DatasetFeat\nfrom libreco.algorithms import YouTubeRanking  # feat data, algorithm YouTubeRanking\n\ndata = pd.read_csv(\"examples/sample_data/sample_movielens_merged.csv\", sep=\",\", header=0)\n# split into train and test data based on time\ntrain_data, test_data = split_by_ratio_chrono(data, test_size=0.2)\n\n# specify complete columns information\nsparse_col = [\"sex\", \"occupation\", \"genre1\", \"genre2\", \"genre3\"]\ndense_col = [\"age\"]\nuser_col = [\"sex\", \"age\", \"occupation\"]\nitem_col = [\"genre1\", \"genre2\", \"genre3\"]\n\ntrain_data, data_info = DatasetFeat.build_trainset(\n    train_data, user_col, item_col, sparse_col, dense_col\n)\ntest_data = DatasetFeat.build_testset(test_data)\nprint(data_info)  # n_users: 5962, n_items: 3226, data sparsity: 0.4185 %\n\nytb_ranking = YouTubeRanking(\n    task=\"ranking\",\n    data_info=data_info,\n    embed_size=16,\n    n_epochs=3,\n    lr=1e-4,\n    batch_size=512,\n    use_bn=True,\n    hidden_units=(128, 64, 32),\n)\nytb_ranking.fit(\n    train_data,\n    neg_sampling=True,\n    verbose=2,\n    shuffle=True,\n    eval_data=test_data,\n    metrics=[\"loss\", \"roc_auc\", \"precision\", \"recall\", \"map\", \"ndcg\"],\n)\n\n# predict preference of user 2211 to item 110\nytb_ranking.predict(user=2211, item=110)\n# recommend 7 items for user 2211\nytb_ranking.recommend_user(user=2211, n_rec=7)\n\n# cold-start prediction\nytb_ranking.predict(user=\"ccc\", item=\"not item\", cold_start=\"average\")\n# cold-start recommendation\nytb_ranking.recommend_user(user=\"are we good?\", n_rec=7, cold_start=\"popular\")\n```\n\n## Data Format\n\nJUST normal data format, each line represents a sample. One thing is important, the model assumes that `user`, `item`, and `label` column index are 0, 1, and 2, respectively. You may wish to change the column order if that's not the case. Take for Example, the `movielens-1m` dataset:\n\n> 1::1193::5::978300760<br>\n> 1::661::3::978302109<br>\n> 1::914::3::978301968<br>\n> 1::3408::4::978300275\n\nBesides, if you want to use some other meta features (e.g., age, sex, category etc.),  you need to tell the model which columns are [`sparse_col`, `dense_col`, `user_col`, `item_col`], which means all features must be in a same table. See above `YouTubeRanking` for example.\n\n**Also note that your data should not contain missing values.**\n\n\n\n## Documentation\n\nThe tutorials and API documentation are hosted on [librecommender.readthedocs.io](https://librecommender.readthedocs.io/en/latest/).\n\nThe example scripts are under [examples/](https://github.com/massquantity/LibRecommender/tree/master/examples) folder.\n\n\n\n## Installation & Dependencies \n\nFrom pypi : &nbsp;\n\n```shell\n$ pip install -U LibRecommender\n```\n\nBuild from source:\n\n```shell\n$ git clone https://github.com/massquantity/LibRecommender.git\n$ cd LibRecommender\n$ pip install .\n```\n\n\n#### Basic Dependencies for [`libreco`](https://github.com/massquantity/LibRecommender/tree/master/libreco):\n\n- Python >= 3.6\n- TensorFlow >= 1.15, < 2.16\n- PyTorch >= 1.10\n- Numpy >= 1.19.5\n- Pandas >= 1.0.0\n- Scipy >= 1.2.1, < 1.13.0\n- scikit-learn >= 0.20.0\n- gensim >= 4.0.0\n- tqdm\n- [nmslib](https://github.com/nmslib/nmslib) (optional, used in approximate similarity searching. See [Embedding](https://librecommender.readthedocs.io/en/latest/user_guide/embedding.html))\n- [DGL](https://github.com/dmlc/dgl) (optional, used in GraphSage and PinSage. See [Implementation Details](https://librecommender.readthedocs.io/en/latest/internal/implementation_details.html#pinsage))\n- Cython >= 0.29.0, < 3 (optional, for building from source)\n\nIf you are using Python 3.6, you also need to install [dataclasses](https://github.com/ericvsmith/dataclasses), which was first introduced in Python 3.7.\n\nLibRecommender has been tested under TensorFlow 1.15, 2.6, 2.10 and 2.12. If you encounter any problem during running, feel free to open an issue.\n\n**Tensorflow [2.16](https://github.com/tensorflow/tensorflow/releases/tag/v2.16.1) starts using Keras 3.0, so tf1 syntax is no longer supported.** Now the supported version is 1.15 - 2.15.\n\n**Known issue**:\n+ Sometimes one may encounter errors like `ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject`. In this case try upgrading numpy, and version 1.22.0 or higher is probably a safe option.\n+ When saving a TensorFlow model for serving, you might encounter the error message: `Fatal Python error: Segmentation fault (core dumped)`.\n  This issue is most likely related to the `protobuf` library, so you should follow the official recommended [version](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/pip_package/setup.py#L98) \n  based on your local tensorflow version. In general, it's advisable to use protobuf < 4.24.0.\n\nThe table below shows some compatible version combinations: \n\n| Python |         Numpy          |   TensorFlow    |          OS           |\n|:------:|:----------------------:|:---------------:|:---------------------:|\n|  3.6   |         1.19.5         |    1.15, 2.5    | linux, windows, macos |\n|  3.7   |     1.20.3, 1.21.6     | 1.15, 2.6, 2.10 | linux, windows, macos |\n|  3.8   |     1.22.4, 1.23.4     | 2.6, 2.10, 2.12 | linux, windows, macos |\n|  3.9   |     1.22.4, 1.23.4     | 2.6, 2.10, 2.12 | linux, windows, macos |\n|  3.10  | 1.22.4, 1.23.4, 1.24.2 |   2.10, 2.12    | linux, windows, macos |\n|  3.11  |     1.23.4, 1.24.2     |      2.12       | linux, windows, macos |\n\n\n#### Optional Dependencies for [`libserving`](https://github.com/massquantity/LibRecommender/tree/master/libserving):\n\n+ Python >= 3.7\n+ sanic >= 22.3\n+ requests\n+ aiohttp\n+ pydantic\n+ [ujson](https://github.com/ultrajson/ultrajson)\n+ [redis](<https://redis.io/>)\n+ [redis-py](https://github.com/andymccurdy/redis-py) >= 4.2.0\n+ [faiss](https://github.com/facebookresearch/faiss) >= 1.5.2\n+ [TensorFlow Serving](<https://github.com/tensorflow/serving>) == 2.8.2\n\n## Docker\nOne can also use the library in a docker container without installing dependencies, see [Docker](https://github.com/massquantity/LibRecommender/tree/master/docker).\n\n## References\n\n|     Algorithm     | Category<sup><a href=\"#fn1\" id=\"ref1\">1</a></sup> |       Backend       | Sequence<sup><a href=\"#fn2\" id=\"ref2\">2</a></sup> | Graph<sup><a href=\"#fn3\" id=\"ref3\">3</a></sup> | Embedding<sup><a href=\"#fn4\" id=\"ref4\">4</a></sup> | Paper                                                                                                                                                                                                                                                                                                                                                            |\n|:-----------------:|:-------------------------------------------------:|:-------------------:|:-------------------------------------------------:|:----------------------------------------------:|:--------------------------------------------------:|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n|  userCF / itemCF  |                       pure                        |    Cython, Rust     |                                                   |                                                |                                                    | [Item-Based Collaborative Filtering](http://www.ra.ethz.ch/cdstore/www10/papers/pdf/p519.pdf)                                                                                                                                                                                                                                                                    |\n|        SVD        |                       pure                        |     TensorFlow1     |                                                   |                                                |                 :heavy_check_mark:                 | [Matrix Factorization Techniques](https://datajobs.com/data-science-repo/Recommender-Systems-[Netflix].pdf)                                                                                                                                                                                                                                                      |\n|       SVD++       |                       pure                        |     TensorFlow1     |                                                   |                                                |                 :heavy_check_mark:                 | [Factorization Meets the Neighborhood](https://dl.acm.org/citation.cfm?id=1401944)                                                                                                                                                                                                                                                                               |\n|        ALS        |                       pure                        |       Cython        |                                                   |                                                |                 :heavy_check_mark:                 | 1. [Matrix Completion via Alternating Least Square(ALS)](https://stanford.edu/~rezab/classes/cme323/S15/notes/lec14.pdf)  <br>2. [Collaborative Filtering for Implicit Feedback Datasets](http://yifanhu.net/PUB/cf.pdf)  <br>3. [Conjugate Gradient for Implicit Feedback](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.379.6473&rep=rep1&type=pdf) |\n|        NCF        |                       pure                        |     TensorFlow1     |                                                   |                                                |                                                    | [Neural Collaborative Filtering](https://arxiv.org/pdf/1708.05031.pdf)                                                                                                                                                                                                                                                                                           |\n|        BPR        |                       pure                        | Cython, TensorFlow1 |                                                   |                                                |                 :heavy_check_mark:                 | [Bayesian Personalized Ranking](https://arxiv.org/ftp/arxiv/papers/1205/1205.2618.pdf)                                                                                                                                                                                                                                                                           |\n|    Wide & Deep    |                       feat                        |     TensorFlow1     |                                                   |                                                |                                                    | [Wide & Deep Learning for Recommender Systems](https://arxiv.org/pdf/1606.07792.pdf)                                                                                                                                                                                                                                                                             |\n|        FM         |                       feat                        |     TensorFlow1     |                                                   |                                                |                                                    | [Factorization Machines](https://www.csie.ntu.edu.tw/~b97053/paper/Rendle2010FM.pdf)                                                                                                                                                                                                                                                                             |\n|      DeepFM       |                       feat                        |     TensorFlow1     |                                                   |                                                |                                                    | [DeepFM](https://arxiv.org/pdf/1703.04247.pdf)                                                                                                                                                                                                                                                                                                                   |\n| YouTubeRetrieval  |                       feat                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                 :heavy_check_mark:                 | [Deep Neural Networks for YouTube Recommendations](<https://static.googleusercontent.com/media/research.google.com/zh-CN//pubs/archive/45530.pdf>)                                                                                                                                                                                                               |\n|  YouTubeRanking   |                       feat                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                                                    | [Deep Neural Networks for YouTube Recommendations](<https://static.googleusercontent.com/media/research.google.com/zh-CN//pubs/archive/45530.pdf>)                                                                                                                                                                                                               |\n|      AutoInt      |                       feat                        |     TensorFlow1     |                                                   |                                                |                                                    | [AutoInt](https://arxiv.org/pdf/1810.11921.pdf)                                                                                                                                                                                                                                                                                                                  |\n|        DIN        |                       feat                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                                                    | [Deep Interest Network](https://arxiv.org/pdf/1706.06978.pdf)                                                                                                                                                                                                                                                                                                    |\n|     Item2Vec      |                       pure                        |          /          |                :heavy_check_mark:                 |                                                |                 :heavy_check_mark:                 | [Item2Vec](https://arxiv.org/pdf/1603.04259.pdf)                                                                                                                                                                                                                                                                                                                 |\n| RNN4Rec / GRU4Rec |                       pure                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                 :heavy_check_mark:                 | [Session-based Recommendations with Recurrent Neural Networks](https://arxiv.org/pdf/1511.06939.pdf)                                                                                                                                                                                                                                                             |\n|       Caser       |                       pure                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                 :heavy_check_mark:                 | [Personalized Top-N Sequential Recommendation via Convolutional](https://arxiv.org/pdf/1809.07426.pdf)                                                                                                                                                                                                                                                           |\n|      WaveNet      |                       pure                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                 :heavy_check_mark:                 | [WaveNet: A Generative Model for Raw Audio](https://arxiv.org/pdf/1609.03499.pdf)                                                                                                                                                                                                                                                                                |\n|     DeepWalk      |                       pure                        |          /          |                                                   |               :heavy_check_mark:               |                 :heavy_check_mark:                 | [DeepWalk](https://arxiv.org/pdf/1403.6652.pdf)                                                                                                                                                                                                                                                                                                                  |\n|       NGCF        |                       pure                        |       PyTorch       |                                                   |               :heavy_check_mark:               |                 :heavy_check_mark:                 | [Neural Graph Collaborative Filtering](https://arxiv.org/pdf/1905.08108.pdf)                                                                                                                                                                                                                                                                                     |\n|     LightGCN      |                       pure                        |       PyTorch       |                                                   |               :heavy_check_mark:               |                 :heavy_check_mark:                 | [LightGCN](https://arxiv.org/pdf/2002.02126.pdf)                                                                                                                                                                                                                                                                                                                 |\n|     GraphSage     |                       feat                        |    DGL, PyTorch     |                                                   |               :heavy_check_mark:               |                 :heavy_check_mark:                 | [Inductive Representation Learning on Large Graphs](https://arxiv.org/abs/1706.02216)                                                                                                                                                                                                                                                                            |\n|      PinSage      |                       feat                        |    DGL, PyTorch     |                                                   |               :heavy_check_mark:               |                 :heavy_check_mark:                 | [Graph Convolutional Neural Networks for Web-Scale](https://arxiv.org/abs/1806.01973)                                                                                                                                                                                                                                                                            |\n|     TwoTower      |                       feat                        |     TensorFlow1     |                                                   |                                                |                 :heavy_check_mark:                 | 1. [Sampling-Bias-Corrected Neural Modeling for Large Corpus Item](https://storage.googleapis.com/pub-tools-public-publication-data/pdf/6c8a86c981a62b0126a11896b7f6ae0dae4c3566.pdf)  <br>2. [Self-supervised Learning for Large-scale Item](https://arxiv.org/pdf/2007.12865.pdf)                                                                              |\n|    Transformer    |                       feat                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                                                    | 1. [BST](https://arxiv.org/pdf/1905.06874.pdf)  <br>2. [Transformers4Rec](https://dl.acm.org/doi/10.1145/3460231.3474255) <br>3. [RMSNorm](https://arxiv.org/pdf/1910.07467.pdf)                                                                                                                                                                                 |\n|        SIM        |                       feat                        |     TensorFlow1     |                :heavy_check_mark:                 |                                                |                                                    | [SIM](https://arxiv.org/pdf/2006.05639.pdf)                                                                                                                                                                                                                                                                                                                      |\n|       Swing       |                       pure                        |        Rust         |                                                   |                                                |                                                    | [Swing](https://arxiv.org/pdf/2010.05525)                                                                                                                                                                                                                                                                                                                        |\n\n> <sup id=\"fn1\">[1] **Category**: `pure` means collaborative-filtering algorithms which only use behavior data,  `feat` means other side-features can be included. <a href=\"#ref1\" title=\"Jump back to footnote 1 in the text.\">\u21a9</a></sup>\n> \n> <sup id=\"fn2\">[2] **Sequence**: Algorithms that leverage user behavior sequence. <a href=\"#ref2\" title=\"Jump back to footnote 2 in the text.\">\u21a9</a></sup>\n> \n> <sup id=\"fn3\">[3] **Graph**: Algorithms that leverage graph information, including Graph Embedding (GE) and Graph Neural Network (GNN) . <a href=\"#ref3\" title=\"Jump back to footnote 3 in the text.\">\u21a9</a></sup>\n> \n> <sup id=\"fn4\">[4] **Embedding**: Algorithms that can generate final user and item embeddings. <a href=\"#ref4\" title=\"Jump back to footnote 4 in the text.\">\u21a9</a></sup>\n\n\n\n### Powered by\n\n[![JetBrains Logo](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)](https://www.jetbrains.com/community/opensource/#support)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Versatile end-to-end recommender system.",
    "version": "1.5.1",
    "project_urls": {
        "Homepage": "https://github.com/massquantity/LibRecommender",
        "documentation": "https://librecommender.readthedocs.io/en/latest/",
        "repository": "https://github.com/massquantity/LibRecommender"
    },
    "split_keywords": [
        "collaborative filtering",
        " recommender system"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "27f8461add2c79b7d7e0006c286a4593175a68b21d1fe3ad7760167f7ac66e36",
                "md5": "94f4f8b7fc2778e96164ca7b21fcde97",
                "sha256": "e5174a0c791567026ab803a21f0f03bee63dc61ef4809e008ae1bf33a8d4f1ce"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp310-cp310-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "94f4f8b7fc2778e96164ca7b21fcde97",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.6",
            "size": 2307810,
            "upload_time": "2024-06-20T04:01:41",
            "upload_time_iso_8601": "2024-06-20T04:01:41.858784Z",
            "url": "https://files.pythonhosted.org/packages/27/f8/461add2c79b7d7e0006c286a4593175a68b21d1fe3ad7760167f7ac66e36/LibRecommender-1.5.1-cp310-cp310-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6b28aa90f780eeeb26cb57baabd26177a095816fbca59d2925671d350fa53497",
                "md5": "57d2ee45b4941b72d99a95eefb3ef40a",
                "sha256": "2dcdb5ba50dcedbfcfbccedae89d43907e965510c2eaea74d04bf055f6826d43"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "57d2ee45b4941b72d99a95eefb3ef40a",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.6",
            "size": 2133366,
            "upload_time": "2024-06-20T04:01:45",
            "upload_time_iso_8601": "2024-06-20T04:01:45.220309Z",
            "url": "https://files.pythonhosted.org/packages/6b/28/aa90f780eeeb26cb57baabd26177a095816fbca59d2925671d350fa53497/LibRecommender-1.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0c8429e560dc7366fa97f58bc0d88f336ed92f781877754677cc7213c0b870d2",
                "md5": "adb984a17e96e044e4c44a1ba1e8456f",
                "sha256": "7c4293118686a6d799debd05e40f92b05b6a02d9afbe76b57d54c1a1ba024c3c"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp310-cp310-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "adb984a17e96e044e4c44a1ba1e8456f",
            "packagetype": "bdist_wheel",
            "python_version": "cp310",
            "requires_python": ">=3.6",
            "size": 837480,
            "upload_time": "2024-06-20T04:01:47",
            "upload_time_iso_8601": "2024-06-20T04:01:47.998172Z",
            "url": "https://files.pythonhosted.org/packages/0c/84/29e560dc7366fa97f58bc0d88f336ed92f781877754677cc7213c0b870d2/LibRecommender-1.5.1-cp310-cp310-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c372499dc04f15d1572d5ec7c8d646693d87154d4af38f371c45b91a83c860c3",
                "md5": "4f419a3582f85bfeb2e3968fa7f43810",
                "sha256": "aaebabdbc8a719d55ab89466ac5a7f8ec19252941ee6cdbf091d65d9d5571097"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp311-cp311-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "4f419a3582f85bfeb2e3968fa7f43810",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.6",
            "size": 2306681,
            "upload_time": "2024-06-20T04:01:56",
            "upload_time_iso_8601": "2024-06-20T04:01:56.395410Z",
            "url": "https://files.pythonhosted.org/packages/c3/72/499dc04f15d1572d5ec7c8d646693d87154d4af38f371c45b91a83c860c3/LibRecommender-1.5.1-cp311-cp311-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b667c6d67058f56c0f96266e956de295500e0442a51e8e0f471fa5817984612c",
                "md5": "bb58a3ffcfe725357e7e0d7f40ff331d",
                "sha256": "d57b6f2ff2be96ff17495510360b59672d9291e57a80d7545b99745d5cee440e"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "bb58a3ffcfe725357e7e0d7f40ff331d",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.6",
            "size": 2194780,
            "upload_time": "2024-06-20T04:02:01",
            "upload_time_iso_8601": "2024-06-20T04:02:01.010551Z",
            "url": "https://files.pythonhosted.org/packages/b6/67/c6d67058f56c0f96266e956de295500e0442a51e8e0f471fa5817984612c/LibRecommender-1.5.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a4d7cb99b4418c90339ef515072c875efc758ca7f6745333dfcb7dfd207aec2e",
                "md5": "69e81d17c79ea0b38686bddd02de8b05",
                "sha256": "fc42b6f8e209b56f4a1fe0b64a92b1192263d6e94faddb400a8b81598c6a40d8"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp311-cp311-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "69e81d17c79ea0b38686bddd02de8b05",
            "packagetype": "bdist_wheel",
            "python_version": "cp311",
            "requires_python": ">=3.6",
            "size": 835365,
            "upload_time": "2024-06-20T04:02:04",
            "upload_time_iso_8601": "2024-06-20T04:02:04.492696Z",
            "url": "https://files.pythonhosted.org/packages/a4/d7/cb99b4418c90339ef515072c875efc758ca7f6745333dfcb7dfd207aec2e/LibRecommender-1.5.1-cp311-cp311-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a4d489537b1e8221ec432b437b478f9762b7c257a4928012f329d0b3baa4066d",
                "md5": "986fd86f658061286569dd3d13707140",
                "sha256": "0a575f60307399c244f23b44d51492b3474e5c8c51fbe6863f663658ac0c9c8e"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp36-cp36m-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "986fd86f658061286569dd3d13707140",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": ">=3.6",
            "size": 2305883,
            "upload_time": "2024-06-20T04:02:08",
            "upload_time_iso_8601": "2024-06-20T04:02:08.630078Z",
            "url": "https://files.pythonhosted.org/packages/a4/d4/89537b1e8221ec432b437b478f9762b7c257a4928012f329d0b3baa4066d/LibRecommender-1.5.1-cp36-cp36m-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3a7a9a821ca7c63b155837e98773bee5182e9ef77630a05f196f098df5dff233",
                "md5": "de4716d3c4531c9e66e78475cf2b9400",
                "sha256": "511432b433e88090f426a0c5234cbb9cff8444b19ef7702055f1f374843e98ca"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "de4716d3c4531c9e66e78475cf2b9400",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": ">=3.6",
            "size": 2056657,
            "upload_time": "2024-06-20T04:02:12",
            "upload_time_iso_8601": "2024-06-20T04:02:12.252432Z",
            "url": "https://files.pythonhosted.org/packages/3a/7a/9a821ca7c63b155837e98773bee5182e9ef77630a05f196f098df5dff233/LibRecommender-1.5.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ddee2ba1f54483e5c8beac03fd377c6b282695f364bff6929571a509f894ec4",
                "md5": "5ac1e1917ad5647bfdbcc3086167bee3",
                "sha256": "ad097cc8c91dfca2b613c72a21ab09b1721ebc650cd8db290cc5757bb173181f"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp36-cp36m-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "5ac1e1917ad5647bfdbcc3086167bee3",
            "packagetype": "bdist_wheel",
            "python_version": "cp36",
            "requires_python": ">=3.6",
            "size": 836572,
            "upload_time": "2024-06-20T04:02:14",
            "upload_time_iso_8601": "2024-06-20T04:02:14.544687Z",
            "url": "https://files.pythonhosted.org/packages/0d/de/e2ba1f54483e5c8beac03fd377c6b282695f364bff6929571a509f894ec4/LibRecommender-1.5.1-cp36-cp36m-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2e0cdd517110b7cd0ba818915af66791340a12db835fd92943f6b7dcd2ac2ef7",
                "md5": "33fb9b30f3796a6c67d1b8332250f622",
                "sha256": "be4cbcb8f46c55951dedcda58ac151940ee5aff58000186a9bb8b5f42a866d39"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp37-cp37m-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "33fb9b30f3796a6c67d1b8332250f622",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.6",
            "size": 2305923,
            "upload_time": "2024-06-20T04:02:17",
            "upload_time_iso_8601": "2024-06-20T04:02:17.203087Z",
            "url": "https://files.pythonhosted.org/packages/2e/0c/dd517110b7cd0ba818915af66791340a12db835fd92943f6b7dcd2ac2ef7/LibRecommender-1.5.1-cp37-cp37m-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "31ec1fa9dc7e63a64bde6b9b4159e3ce8ccdad57e13a1d6d82c3d10b86caa941",
                "md5": "7a3707e3b8cae8b41b3e26dad02869b7",
                "sha256": "6bef0ad7ebdb671687a54ccb8a064cfcf0f6c5d39c0122d2041fc4db925982eb"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "7a3707e3b8cae8b41b3e26dad02869b7",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.6",
            "size": 2059579,
            "upload_time": "2024-06-20T04:02:21",
            "upload_time_iso_8601": "2024-06-20T04:02:21.304445Z",
            "url": "https://files.pythonhosted.org/packages/31/ec/1fa9dc7e63a64bde6b9b4159e3ce8ccdad57e13a1d6d82c3d10b86caa941/LibRecommender-1.5.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f37d6c72b1f023a130007494e1eea9648b108f556a890d59708d4fe0cee964b0",
                "md5": "f00d0373c1eb79516dc8519c91e90b8a",
                "sha256": "cacbd7ab73dd1df513ada6f001f80cf5990b3dd55e6dc819133daac327551e4f"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp37-cp37m-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "f00d0373c1eb79516dc8519c91e90b8a",
            "packagetype": "bdist_wheel",
            "python_version": "cp37",
            "requires_python": ">=3.6",
            "size": 837606,
            "upload_time": "2024-06-20T04:02:23",
            "upload_time_iso_8601": "2024-06-20T04:02:23.683293Z",
            "url": "https://files.pythonhosted.org/packages/f3/7d/6c72b1f023a130007494e1eea9648b108f556a890d59708d4fe0cee964b0/LibRecommender-1.5.1-cp37-cp37m-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "35eb532144101178c3fa3b9d79f078850bc62f4afde4b9eafad33cde3bd714c0",
                "md5": "01466fc25580bd7c17db70a8892f01c5",
                "sha256": "cf271c1dc382dd1e3ac40f663b8e1de78b781de953679d218320ae63b94a445e"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp38-cp38-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "01466fc25580bd7c17db70a8892f01c5",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.6",
            "size": 2310964,
            "upload_time": "2024-06-20T04:02:26",
            "upload_time_iso_8601": "2024-06-20T04:02:26.578960Z",
            "url": "https://files.pythonhosted.org/packages/35/eb/532144101178c3fa3b9d79f078850bc62f4afde4b9eafad33cde3bd714c0/LibRecommender-1.5.1-cp38-cp38-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b09d84702ecccf47d4407d256441b7673845a41d0a1ee2db915be6c29a2c415f",
                "md5": "b37622becb9811df73393d808eb788fe",
                "sha256": "7ab6f8025eac057d89fb97a348d7915ac3b3a64e8835005e30022798e6ba6d66"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "b37622becb9811df73393d808eb788fe",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.6",
            "size": 2150407,
            "upload_time": "2024-06-20T04:02:29",
            "upload_time_iso_8601": "2024-06-20T04:02:29.661898Z",
            "url": "https://files.pythonhosted.org/packages/b0/9d/84702ecccf47d4407d256441b7673845a41d0a1ee2db915be6c29a2c415f/LibRecommender-1.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c7e4fd8a35dfa953df085f71e6b4a25a770f246b6844b4b3012d253d2925f82d",
                "md5": "549fda88e3696527b231550c1bddfbff",
                "sha256": "be61c209fefbe6ffa3901d9c75d0e7d173223b50bf291d3c580c7220d6309edc"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp38-cp38-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "549fda88e3696527b231550c1bddfbff",
            "packagetype": "bdist_wheel",
            "python_version": "cp38",
            "requires_python": ">=3.6",
            "size": 839871,
            "upload_time": "2024-06-20T04:02:31",
            "upload_time_iso_8601": "2024-06-20T04:02:31.771691Z",
            "url": "https://files.pythonhosted.org/packages/c7/e4/fd8a35dfa953df085f71e6b4a25a770f246b6844b4b3012d253d2925f82d/LibRecommender-1.5.1-cp38-cp38-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "321a867546448cd0812dc89ef3024d45ce8300b996575d2b0cdfba35e0a42f90",
                "md5": "081c4777b90650f74f4487eb3f2b0bfe",
                "sha256": "c7957560405c11d0eb6284047863bfe74492a6bf56318d1e3feb3dd9067954a1"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp39-cp39-macosx_10_9_x86_64.whl",
            "has_sig": false,
            "md5_digest": "081c4777b90650f74f4487eb3f2b0bfe",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.6",
            "size": 2312657,
            "upload_time": "2024-06-20T04:02:34",
            "upload_time_iso_8601": "2024-06-20T04:02:34.459512Z",
            "url": "https://files.pythonhosted.org/packages/32/1a/867546448cd0812dc89ef3024d45ce8300b996575d2b0cdfba35e0a42f90/LibRecommender-1.5.1-cp39-cp39-macosx_10_9_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f3e47e8ae6a932b3b2f7f4c150a85a86accd34f8424736ba1b892a8b82356908",
                "md5": "09443818019a9b3dd1b3740088395f23",
                "sha256": "a7450622083b7ef2983da548a9d875540de4cf8bdd66c7da3dee279c11012680"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "09443818019a9b3dd1b3740088395f23",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.6",
            "size": 2147645,
            "upload_time": "2024-06-20T04:02:37",
            "upload_time_iso_8601": "2024-06-20T04:02:37.801267Z",
            "url": "https://files.pythonhosted.org/packages/f3/e4/7e8ae6a932b3b2f7f4c150a85a86accd34f8424736ba1b892a8b82356908/LibRecommender-1.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "27bf44a24bbdaa91062fe4271fe8df4073c704c3600e2cb435e91c0c6bf09adf",
                "md5": "35a70ab8c6e1f0f7f7c98f1cbe91be93",
                "sha256": "beeb8ad0dce86449222bd29bcbe84f28f1e47df635878f75769b3ab8da594bf2"
            },
            "downloads": -1,
            "filename": "LibRecommender-1.5.1-cp39-cp39-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "35a70ab8c6e1f0f7f7c98f1cbe91be93",
            "packagetype": "bdist_wheel",
            "python_version": "cp39",
            "requires_python": ">=3.6",
            "size": 841145,
            "upload_time": "2024-06-20T04:02:40",
            "upload_time_iso_8601": "2024-06-20T04:02:40.025785Z",
            "url": "https://files.pythonhosted.org/packages/27/bf/44a24bbdaa91062fe4271fe8df4073c704c3600e2cb435e91c0c6bf09adf/LibRecommender-1.5.1-cp39-cp39-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "db1668c554d973c51ff6ddc2a5843a968248eb8bb89d53441b79e46fe46a816e",
                "md5": "d838fafac4321437876488ec861a1813",
                "sha256": "2149fe52f36938aa724cccc93cfbbca52e3a3974be368ba835e4d0b36f374208"
            },
            "downloads": -1,
            "filename": "librecommender-1.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d838fafac4321437876488ec861a1813",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 525945,
            "upload_time": "2024-06-20T04:02:42",
            "upload_time_iso_8601": "2024-06-20T04:02:42.088113Z",
            "url": "https://files.pythonhosted.org/packages/db/16/68c554d973c51ff6ddc2a5843a968248eb8bb89d53441b79e46fe46a816e/librecommender-1.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-20 04:02:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "massquantity",
    "github_project": "LibRecommender",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [
        {
            "name": "numpy",
            "specs": [
                [
                    ">=",
                    "1.19.5"
                ]
            ]
        },
        {
            "name": "scipy",
            "specs": [
                [
                    ">=",
                    "1.2.1"
                ],
                [
                    "<",
                    "1.13.0"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    ">=",
                    "1.0.0"
                ]
            ]
        },
        {
            "name": "scikit-learn",
            "specs": [
                [
                    ">=",
                    "0.20.0"
                ]
            ]
        },
        {
            "name": "tensorflow",
            "specs": [
                [
                    ">=",
                    "1.15.0"
                ],
                [
                    "<",
                    "2.16.0"
                ]
            ]
        },
        {
            "name": "torch",
            "specs": [
                [
                    ">=",
                    "1.10.0"
                ]
            ]
        },
        {
            "name": "gensim",
            "specs": [
                [
                    ">=",
                    "4.0.0"
                ]
            ]
        },
        {
            "name": "tqdm",
            "specs": []
        },
        {
            "name": "nmslib",
            "specs": []
        }
    ],
    "lcname": "librecommender"
}
        
Elapsed time: 3.42384s