Collaborative Filtering.
Project description
from cf import CollFilter
if __name__ == '__main__':
data = read_data(train_path)
data = pre_process(data) # return [(user_id: str, item_id: str, float),]
cf = CollFilter(data)
ucf = cf.user_cf() # return {user_id: [(item, score),],}
icf = cf.item_cf() # return {user_id: [(item, 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.0.1.tar.gz
(4.5 kB
view hashes)