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.5.tar.gz
(4.6 kB
view details)
File details
Details for the file coll-filter-1.1.5.tar.gz
.
File metadata
- Download URL: coll-filter-1.1.5.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 | 5727badbb4e6bcb670337c7303a5e3be4e55f1a933dc2afeda32a64926c01414 |
|
MD5 | 4ac52df8a6df3a81d6dc1782ee00c929 |
|
BLAKE2b-256 | 663a5fd1e8d0be666c15389d902890245e72d7844e74c14b341f6e661843c35b |