Collaborative Filtering with multi-process parallelism.
Project description
from cf import CollFilter
if __name__ == '__main__':
data = read_data(train_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),],}
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.1.9.tar.gz
(5.0 kB
view details)
File details
Details for the file coll-filter-1.1.9.tar.gz
.
File metadata
- Download URL: coll-filter-1.1.9.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3767f0ea052b4227b1bd3034773b207becde73056aeb6d06b20daaa3e399f668 |
|
MD5 | 82bb5e2c69829a96796ebad83499c3c8 |
|
BLAKE2b-256 | 54c4b61beb5992730261aeb07f2ba680996fe770b56a9538161da20cc94cf1aa |