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.2
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.2.tar.gz | 8.7 kB | Details |
Release files / coll_filter-1.5.2.tar.gz
| Download URL | coll_filter-1.5.2.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83ce25395b8367171fc4f6a86a5a642ebc5e3a5845de23be2a2f3814de3f7f4b
|
|
BLAKE2b-256 checksum How to use checksums |
10249160bb9768d3b078bc2dbcb6de8126a4c1a1dc21474205600ff43482b572
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|