Collaborative Filtering with multi-process parallelism.
Project description
Usage Sample ''''''''''''
.. code:: python
from cf import CollFilter
if name == 'main': data = read_data(train_path) data = pre_process(data) # return [(user_id: Any, item_id: Any, float),] cf = CollFilter(data) ucf = cf.user_cf() # return {user_id: [(item_id, score),],} icf = cf.item_cf() # return {user_id: [(item_id, score),],} recommends = cf.recommends(user_ids, recall_num=5) # return {user_id: [(item_id, score),],} recommend = cf.recommend(user_id, recall_num=5) # return [(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.2.1.tar.gz
(6.5 kB
view hashes)