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, rating: 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, num_recalls=5) # return [(item_id, score),]
recommends = cf.recommends(user_ids, num_recalls=5) # return {user_id: [(item_id, score),],}
cf.release()
Release files for coll-filter 1.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| coll_filter-1.5.3.tar.gz | 8.8 kB | Details |
Release files / coll_filter-1.5.3.tar.gz
| Download URL | coll_filter-1.5.3.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6fc6b96c5102011b39d34496d9cd6b4a9fac885ccd9fd7c14e17dad3283f192
|
|
BLAKE2b-256 checksum How to use checksums |
1013812e015309b3d7409f4e3909c8266a76c39b330540553765b41183424dd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|