Skip to main content

Package for implicit recommendations

Project description

Implicit_reca

This is an implementation of the ALS algorithm under Apache Spark's mllib library, designed specifically for designing recommendation systems on implicit data, with the recent update on the regularization parameter.

What is implicit data ?

The standard approach to matrix factorization-based collaborative filtering treats the entries in the user-item matrix as explicit preferences given by the user to the item, for example, users giving ratings to movies.

It is common in many real-world use cases to only have access to implicit feedback (e.g. views, clicks, purchases, likes, shares etc.). This is called implicit data.

Installation

Use the package manager pip to install foobar.

pip install implicit_reca

Usage

import implicit_reca as ir

ir.create_lookup(dataset)                                         # Create the lookup table for future reference.
ir.create_sparse(dataset,name_of_implicit_feautre)                # Create the sparse matrix of user x items (R).
ir.implicit_als(spmx,alpha,iterations,lambd,features)             # Main function behind the ALS algorithm.
ir.item_recommend(item_ID,item_vecs,item_lookup,no_items_rec)     # Item vs item recommendation.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

implicit_reca-0.0.1.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

implicit_reca-0.0.1-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

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