Skip to content

Library to train and serve recommendation models in Python

License

Notifications You must be signed in to change notification settings

redbubble/pyrec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyrec

Library to train and serve recommendation models in Python

Installation

pip install git+https://github.com/redbubble/pyrec.git

Usage

Implicit Library Wrapper

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)