coll-filter


Namecoll-filter JSON
Version 1.2.5 PyPI version JSON
download
home_pagehttps://gitee.com/summry/myai
SummaryCollaborative Filtering with multi-process parallelism.
upload_time2024-04-29 02:27:41
maintainerNone
docs_urlNone
authorsummy
requires_python>=3.5
licenseNone
keywords collaborative filtering recommend
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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, 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.5",
    "maintainer_email": null,
    "keywords": "Collaborative Filtering, recommend",
    "author": "summy",
    "author_email": "xiazhongbiao@126.com",
    "download_url": "https://files.pythonhosted.org/packages/fb/0c/02401e66db28b56402c2c1e0e7444c8e72de635f32aa7030afea8ee0741c/coll-filter-1.2.5.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, 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.2.5",
    "project_urls": {
        "Homepage": "https://gitee.com/summry/myai"
    },
    "split_keywords": [
        "collaborative filtering",
        " recommend"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fb0c02401e66db28b56402c2c1e0e7444c8e72de635f32aa7030afea8ee0741c",
                "md5": "0f13359250ed4050688319a18e5c5a45",
                "sha256": "9970e88d4b76fe2dedc8a90a7b619cf65165bd263354562abf9529c076853bfb"
            },
            "downloads": -1,
            "filename": "coll-filter-1.2.5.tar.gz",
            "has_sig": false,
            "md5_digest": "0f13359250ed4050688319a18e5c5a45",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.5",
            "size": 6979,
            "upload_time": "2024-04-29T02:27:41",
            "upload_time_iso_8601": "2024-04-29T02:27:41.207466Z",
            "url": "https://files.pythonhosted.org/packages/fb/0c/02401e66db28b56402c2c1e0e7444c8e72de635f32aa7030afea8ee0741c/coll-filter-1.2.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-29 02:27:41",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "coll-filter"
}
        
Elapsed time: 0.24917s