Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recompy-1.0.2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

recompy-1.0.2-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file recompy-1.0.2.tar.gz.

File metadata

  • Download URL: recompy-1.0.2.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

Hashes for recompy-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7baea42ceb158977531bcb365337dae08de79af47fbbf12e6fe27be5ac7fe11a
MD5 b525f6d356d0a1afce05b2c90d130f89
BLAKE2b-256 494f895de8a45cbf2f03110bf8ea05f8bd757ad78e3cee974c8f00559742da89

See more details on using hashes here.

File details

Details for the file recompy-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: recompy-1.0.2-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

Hashes for recompy-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 136521feddfa539c814bc6af84497dddc83fbf0a64cf163c266b9983698947d5
MD5 905a484dee569df3db3d3ea71e6b1708
BLAKE2b-256 b8b8ce45814b118efb83dcc65f6d2b27c776ae643897726f9a2a879023e51fb2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page