Collaborative Filtering.
Project description
from cf import CollFilter
if __name__ == '__main__':
data = read_data(train_path)
data = pre_process(data) # return [(user_id: str, item_id: str, 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.2.tar.gz
(4.6 kB
view details)
File details
Details for the file coll-filter-1.1.2.tar.gz
.
File metadata
- Download URL: coll-filter-1.1.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3279d855620b585bf0b84e2af101ff151fdd3acda6110f7034c600f68f7f4d60 |
|
MD5 | b1d98d43b51d3d4d9ba19d5b33c02e6a |
|
BLAKE2b-256 | 2b2b4d65b73cc4beec1714238b3ca4dde9ae262c883d50fd8822526950f0f759 |