Skip to main content

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()

Metadata

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)

Source distribution for coll-filter 1.5.4
File Size Uploaded Provenance Actions
coll_filter-1.5.4.tar.gz 8.8 kB Without provenance Details for coll_filter-1.5.4.tar.gz

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

Security for coll-filter 1.5.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.5.4 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page