Collaborative Filtering with multi-process parallelism.
Project description
Usage Sample ''''''''''''
.. code:: python
from cf import CollFilter
if __name__ == '__main__':
data = read_data('file_path')
data = pre_process(data) # return [(user_id: Any, item_id: Any, float),]
cf = CollFilter(data)
ucf = cf.user_cf() # return {user_id: [(item_id, score),],}
icf = cf.item_cf() # return {user_id: [(item_id, score),],}
recommend = cf.recommend(user_id, recall_num=5) # return [(item_id, score),]
recommends = cf.recommends(user_ids, recall_num=5) # return {user_id: [(item_id, score),],}
cf.release()
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
coll-filter-1.2.6.tar.gz
(7.0 kB
view details)
File details
Details for the file coll-filter-1.2.6.tar.gz
.
File metadata
- Download URL: coll-filter-1.2.6.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83ba5359b67456be2d62d11fe8ceca5ebcf4d24175c18b8fba389d7450aafbb9 |
|
MD5 | d0488c2707fa47d938c5b9d6787ff997 |
|
BLAKE2b-256 | 962a65dfc381dd5306b808bd5ea307c09c2d5cfdf2ac90f3519356ec7d237f15 |