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.
Metadata
Release files for recompy 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| recompy-1.0.3.tar.gz | 1.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| recompy-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.1 MB
Release files / recompy-1.0.3.tar.gz
| Download URL | recompy-1.0.3.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d874f17df9608de6fad29b4283d9f3d69ff56d47d6258d0f551c179f114f85c
|
|
BLAKE2b-256 checksum How to use checksums |
51a9421968fd0565b1c8284d3302ab1515a36c7cbef54fb85625ae4719fd6dee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / recompy-1.0.3-py3-none-any.whl
| Download URL | recompy-1.0.3-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e6299200fb81ca6e129bfaf12326f899723bce101e48c81ee97ffa2073d0cb5
|
|
BLAKE2b-256 checksum How to use checksums |
fced813ecd99d8f0eaa35d9405c0694fa5f0a6a0cecd0f6d88dcaa67ff879019
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|