Skip to main content

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

Metadata

Release files for implicit-reca 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for implicit-reca 0.0.1
File Size Uploaded
implicit_reca-0.0.1.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for implicit-reca 0.0.1
File Interpreter ABI Platform
implicit_reca-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 kB

Release files / implicit_reca-0.0.1.tar.gz

Download URL implicit_reca-0.0.1.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
912a22d1ef35d37736e246f82d16fd8ce36458f1737b40db9a8f4c4639ad2a5b
BLAKE2b-256 checksum
How to use checksums
ae66d9b434cc0f375b18fe4d1c230b5837a027104d0098f25b151fc0a13e2c53
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.1.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release files / implicit_reca-0.0.1-py3-none-any.whl

Download URL implicit_reca-0.0.1-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
748aa5f46cdf90ff549c3251cfbccfa99985231e148972e05b070c4cdbaaeea4
BLAKE2b-256 checksum
How to use checksums
08d32f38a22c96acd047b45bceaee9bb11d59fc8ae05b9b490f9b1dcf3c3588d
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.1.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page