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, ratting: 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, recall_num=5) # return [(item_id, score),]
recommends = cf.recommends(user_ids, recall_num=5) # return {user_id: [(item_id, score),],}
cf.release()
Raw data
{
"_id": null,
"home_page": "https://gitee.com/summry/myai",
"name": "coll-filter",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "Collaborative Filtering, recommend",
"author": "summy",
"author_email": "xiazhongbiao@126.com",
"download_url": "https://files.pythonhosted.org/packages/b0/71/96b60bf326795a8fc9b7bbb60a4db3f494bfd9cab2b9f6572a50b27c5d0d/coll-filter-1.3.1.tar.gz",
"platform": null,
"description": "Usage Sample\n''''''''''''\n\n.. code:: python\n\n from cf import CollFilter\n\n if __name__ == '__main__':\n data = read_data('file_path')\n data = pre_process(data) # return [(user_id: Any, item_id: Any, ratting: float),]\n cf = CollFilter(data)\n\n ucf = cf.user_cf() # return {user_id: [(item_id, score),],}\n icf = cf.item_cf() # return {user_id: [(item_id, score),],}\n\n recommend = cf.recommend(user_id, recall_num=5) # return [(item_id, score),]\n recommends = cf.recommends(user_ids, recall_num=5) # return {user_id: [(item_id, score),],}\n\n cf.release()\n\n\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Collaborative Filtering with multi-process parallelism.",
"version": "1.3.1",
"project_urls": {
"Homepage": "https://gitee.com/summry/myai"
},
"split_keywords": [
"collaborative filtering",
" recommend"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b07196b60bf326795a8fc9b7bbb60a4db3f494bfd9cab2b9f6572a50b27c5d0d",
"md5": "86d2df8060abf2adbf5bdeceed64fe24",
"sha256": "4279302c177bbf287136726a63d1c02c0e49e26e02a23f243c9b0f6d5107ddf2"
},
"downloads": -1,
"filename": "coll-filter-1.3.1.tar.gz",
"has_sig": false,
"md5_digest": "86d2df8060abf2adbf5bdeceed64fe24",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 7385,
"upload_time": "2024-08-24T13:42:36",
"upload_time_iso_8601": "2024-08-24T13:42:36.476577Z",
"url": "https://files.pythonhosted.org/packages/b0/71/96b60bf326795a8fc9b7bbb60a4db3f494bfd9cab2b9f6572a50b27c5d0d/coll-filter-1.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-24 13:42:36",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "coll-filter"
}