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.4
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.4.tar.gz | 8.8 kB | Details |
Release files / coll_filter-1.5.4.tar.gz
| Download URL | coll_filter-1.5.4.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e73cae7743ca2beb2215a5fa5125af67535db788d3a78747a928274159aa34e4
|
|
BLAKE2b-256 checksum How to use checksums |
248e6a88c5b3f31b031127f673fd73eb50e907de6ec041776571e5455fc6ca6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|