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
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
File details
Details for the file implicit_reca-0.0.1.tar.gz
.
File metadata
- Download URL: implicit_reca-0.0.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 912a22d1ef35d37736e246f82d16fd8ce36458f1737b40db9a8f4c4639ad2a5b |
|
MD5 | 9e4849391ca4509b6f4118bb3a5f30b2 |
|
BLAKE2b-256 | ae66d9b434cc0f375b18fe4d1c230b5837a027104d0098f25b151fc0a13e2c53 |
File details
Details for the file implicit_reca-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: implicit_reca-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- 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.1.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 748aa5f46cdf90ff549c3251cfbccfa99985231e148972e05b070c4cdbaaeea4 |
|
MD5 | 733df15cb5f7ee5b4ae133b92ebb86d2 |
|
BLAKE2b-256 | 08d32f38a22c96acd047b45bceaee9bb11d59fc8ae05b9b490f9b1dcf3c3588d |