https://github.com/redbubble/pyrec
Library to train and serve recommendation models in Python
https://github.com/redbubble/pyrec
Last synced: 11 months ago
JSON representation
Library to train and serve recommendation models in Python
- Host: GitHub
- URL: https://github.com/redbubble/pyrec
- Owner: redbubble
- License: mit
- Created: 2019-01-24T04:50:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-21T03:54:58.000Z (over 3 years ago)
- Last Synced: 2025-02-07T06:13:06.940Z (over 1 year ago)
- Language: Python
- Size: 24.4 KB
- Stars: 1
- Watchers: 26
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyrec
Library to train and serve recommendation models in Python
## Installation
```bash
pip install git+https://github.com/redbubble/pyrec.git
```
## Usage
### Implicit Library Wrapper
```python
from pyrec import load_recommender
# Load a recommender from file
recommender = load_recommender(als_model_file='als_model.npz', index_file='annoy_index.ann')
recommender.recommend(item_ids=[28418326, 15779237, 11422387], item_weights=[10,20,3], number_of_results=5)
```