A recommender library
Project description
Recompy
Recompy is a library for recommender systems. It provides an easy framework to train models, calculate similarities, showing recommendations.
Recompy shows the train end test errors in each epoch. After a new user is created by defining item id and rating, recommendation can simply obtained. Recompy uses FunkSVD algorithm to train recommender system model. Multiple similarity metrics can be used to calculate user similarity for any given new user.
Functions
set_hyperparameters(initialization_method, max_epoch, n_latent, learning_rate, regularization, early_stopping, init_mean initsd): A function to set hyperparameters. Available initialization techniques are: Random initializer, Normal initializer and He initializer. init_mean and init_sd parameters are used in Normal Initializer as mean and standard deviation.
train_test_split(rated_count, movie_ratio_to_be_splitted, test_split): A function to perform train test split.
fit(): Trains FunkSVD model.
get_recommendation_for_existing_user(user_id, howMany): Gets howMany recommendations for given user_id.
get_recommendation_for_new_user(user_ratings, similarity_measure, howManyUsers, howManyItems): Gets recommendations for new user by a given similarity measure. Similarity measures can be Cosine Similarity, Pearson Correlation, Adjusted Cosine Similarity, Weighted Cosine Similarity, Constrained Pearson Correlation, Mean Squared Difference.
get_similar_products(item_id, howMany): Gets howMany similar items to a given item.
novelty(recommendation_list): Returns novelty of a given recommendation list.
precision_recall_at_k(threshold, k): Returns precision and recall values of recommended items at k.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file recompy-1.0.3.tar.gz.
File metadata
- Download URL: recompy-1.0.3.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d874f17df9608de6fad29b4283d9f3d69ff56d47d6258d0f551c179f114f85c
|
|
| MD5 |
018fb22f60c9c5c12489809f782ecf6a
|
|
| BLAKE2b-256 |
51a9421968fd0565b1c8284d3302ab1515a36c7cbef54fb85625ae4719fd6dee
|
File details
Details for the file recompy-1.0.3-py3-none-any.whl.
File metadata
- Download URL: recompy-1.0.3-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e6299200fb81ca6e129bfaf12326f899723bce101e48c81ee97ffa2073d0cb5
|
|
| MD5 |
b0d44b55a270afb71d6925e8114d55bc
|
|
| BLAKE2b-256 |
fced813ecd99d8f0eaa35d9405c0694fa5f0a6a0cecd0f6d88dcaa67ff879019
|