{ "info": { "author": "Madson Dias", "author_email": "madsonddias@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# fuzzy-c-means\n\n![GitHub](https://img.shields.io/github/license/omadson/fuzzy-c-means.svg)\n[![PyPI](https://img.shields.io/pypi/v/fuzzy-c-means.svg)](http://pypi.org/project/fuzzy-c-means/)\n[![GitHub commit activity](https://img.shields.io/github/commit-activity/w/omadson/fuzzy-c-means.svg)](https://github.com/omadson/fuzzy-c-means/pulse)\n[![GitHub last commit](https://img.shields.io/github/last-commit/omadson/fuzzy-c-means.svg)](https://github.com/omadson/fuzzy-c-means/commit/master)\n\n\n`fuzzy-c-means` is a Python module implementing the [Fuzzy C-means][1] clustering algorithm.\n\n## instalation\nthe `fuzzy-c-means` package is available in [PyPI](https://pypi.org/project/fuzzy-c-means/). to install, simply type the following command:\n```\npip install fuzzy-c-means\n```\n\n## basic usage\nsimple example of use the `fuzzy-c-means` to cluster a dataset in tree groups:\n```Python\nfrom fcmeans import FCM\nfrom sklearn.datasets import make_blobs\nfrom matplotlib import pyplot as plt\nfrom seaborn import scatterplot as scatter\n\n\n# create artifitial dataset\nn_samples = 50000\nn_bins = 3 # use 3 bins for calibration_curve as we have 3 clusters here\ncenters = [(-5, -5), (0, 0), (5, 5)]\n\nX,_ = make_blobs(n_samples=n_samples, n_features=2, cluster_std=1.0,\n centers=centers, shuffle=False, random_state=42)\n\n# fit the fuzzy-c-means\nfcm = FCM(n_clusters=3)\nfcm.fit(X)\n\n# outputs\nfcm_centers = fcm.centers\nfcm_labels = fcm.u.argmax(axis=1)\n\n\n# plot result\n%matplotlib inline\nf, axes = plt.subplots(1, 2, figsize=(11,5))\nscatter(X[:,0], X[:,1], ax=axes[0])\nscatter(X[:,0], X[:,1], ax=axes[1], hue=fcm_labels)\nscatter(fcm_centers[:,0], fcm_centers[:,1], ax=axes[1],marker=\"s\",s=200)\nplt.show()\n```\n\n## how to cite fuzzy-c-means package\nif you use `fuzzy-c-means` package in your paper, please cite it in your publication.\n```\n@misc{fuzzy-c-means,\n author = \"Madson Luiz Dantas Dias\",\n year = \"2019\",\n title = \"fuzzy-c-means: An implementation of Fuzzy $C$-means clustering algorithm.\",\n url = \"https://github.com/omadson/fuzzy-c-means\",\n institution = \"Federal University of Cear\\'{a}, Department of Computer Science\" \n}\n```\n\n## contributing\n\nthis project is open for contributions. here are some of the ways for you to contribute:\n - bug reports/fix\n - features requests\n - use-case demonstrations\n\nto make a contribution, just fork this repository, push the changes in your fork, open up an issue, and make a pull request!\n\n## contributors\n - [Madson Dias](https://github.com/omadson)\n\n[1]: https://doi.org/10.1016/0098-3004(84)90020-7\n[2]: http://scikit-learn.org/\n\n\n\n\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/omadson/fuzzy-c-means", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "fuzzy-c-means", "package_url": "https://pypi.org/project/fuzzy-c-means/", "platform": "", "project_url": "https://pypi.org/project/fuzzy-c-means/", "project_urls": { "Homepage": "https://github.com/omadson/fuzzy-c-means" }, "release_url": "https://pypi.org/project/fuzzy-c-means/0.0.6/", "requires_dist": [ "numpy (>=1.15.4)", "scipy (>=1.1.0)" ], "requires_python": "", "summary": "A simple implementation of Fuzzy C-means algorithm.", "version": "0.0.6" }, "last_serial": 5378914, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "9df9f4fd6eefa8af2c1b8e07d030fa6e", "sha256": "2985e1d2095bc97386b6d5e06d00ddd19ac047add26127eebdebb67a0f78aad4" }, "downloads": -1, "filename": "fuzzy_c_means-0.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "9df9f4fd6eefa8af2c1b8e07d030fa6e", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3354, "upload_time": "2019-05-13T16:56:40", "url": "https://files.pythonhosted.org/packages/9a/ba/1ce4285b101e5748c2f69c0b8e78b2bc68dd7854b070530cb4749f440850/fuzzy_c_means-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "49afca6cb2b3b28e9355124ace3772b4", "sha256": "a31a9d822be2b82c31a253cc140d10aefe2fcbcc8bcf5f6dd01b92425358e22b" }, "downloads": -1, "filename": "fuzzy-c-means-0.0.1.tar.gz", "has_sig": false, "md5_digest": "49afca6cb2b3b28e9355124ace3772b4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2180, "upload_time": "2019-05-13T16:56:42", "url": "https://files.pythonhosted.org/packages/31/9a/b39737b3cdbdd9408a0a9c2823077adc5bb187ce38623a28fb62e543ef9b/fuzzy-c-means-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "3d3c6bec7e109ee88de140d96dbd8622", "sha256": "d217a34531a4cb839a0aa61f1610eb449b10262626adffd735559619ac7b8fe0" }, "downloads": -1, "filename": "fuzzy_c_means-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "3d3c6bec7e109ee88de140d96dbd8622", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3322, "upload_time": "2019-05-13T17:11:56", "url": "https://files.pythonhosted.org/packages/39/3d/dcc7bc26f5d6f1a8bad4408d0ba6b102270f93ff375f31606beac364dea5/fuzzy_c_means-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2898809f822c93481f7800e489920354", "sha256": "400fc13cba4ba5e0504110fa3a334a5fa9cd75a3d8f711a76e03dbaa2a488bb8" }, "downloads": -1, "filename": "fuzzy-c-means-0.0.2.tar.gz", "has_sig": false, "md5_digest": "2898809f822c93481f7800e489920354", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2194, "upload_time": "2019-05-13T17:11:58", "url": "https://files.pythonhosted.org/packages/95/75/0ab3586ea8da5de1140aa25d920960dd3fd3b4d99f9c127b96617b6137c8/fuzzy-c-means-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "5c3eb5a8b50d8aff878ac10b1d9facd0", "sha256": "bf24f9aea9814e981436a373b8817f22ece9a306dff57f14244d7dab279bcbab" }, "downloads": -1, "filename": "fuzzy_c_means-0.0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "5c3eb5a8b50d8aff878ac10b1d9facd0", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 3322, "upload_time": "2019-05-13T17:20:06", "url": "https://files.pythonhosted.org/packages/ec/03/342a73dc8a8c0a099613fb2ea00ca48b4d6af5aa1b7b20f8ee84fc9ef694/fuzzy_c_means-0.0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "68bbfc41ae0583e7b7e39d57171fd8f9", "sha256": "9f46bcf476304aa684c7902219516bb5a2af020be72a223caddc35b9f91966c7" }, "downloads": -1, "filename": "fuzzy-c-means-0.0.3.tar.gz", "has_sig": false, "md5_digest": "68bbfc41ae0583e7b7e39d57171fd8f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2193, "upload_time": "2019-05-13T17:20:07", "url": "https://files.pythonhosted.org/packages/38/20/4dcacca2e8f9d61cfeb5b3034738bc04ea23a2c9f1c329d130d9ed639db3/fuzzy-c-means-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "d302afb12dec5fbfbbc05e7d6d52882d", "sha256": "1959d1411ed5795353ae893d95a0990c765716b18ace88ed2b51396b245ab090" }, "downloads": -1, "filename": "fuzzy_c_means-0.0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "d302afb12dec5fbfbbc05e7d6d52882d", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4294, "upload_time": "2019-05-20T16:54:28", "url": "https://files.pythonhosted.org/packages/5a/e2/a2f72be74b660b93f5862ebc6bcafb078a1dbe0a0b27a51ee560dd780f34/fuzzy_c_means-0.0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "965dd8259c61ad6be685be1d9e01313b", "sha256": "e2a53c7cfd4da57fee51fc44643d1781fc29b6d79be344e0fa414046f0902999" }, "downloads": -1, "filename": "fuzzy-c-means-0.0.4.tar.gz", "has_sig": false, "md5_digest": "965dd8259c61ad6be685be1d9e01313b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3247, "upload_time": "2019-05-20T16:54:30", "url": "https://files.pythonhosted.org/packages/57/84/4c7fe62bb554865cb899bca5036ab75d1563abaec9ae8b22382287b604e5/fuzzy-c-means-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "54078a23ade87cb256ecfa6766bcab0f", "sha256": "ab8bff6009986f7566d57cb68e1a12d2ea028abe3734880c6fb8e7864d9da9cb" }, "downloads": -1, "filename": "fuzzy_c_means-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "54078a23ade87cb256ecfa6766bcab0f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3469, "upload_time": "2019-05-22T00:16:08", "url": "https://files.pythonhosted.org/packages/7a/21/c2ae855a16b99a7e5eaab9a1f49cc304565eb8b9ffd0d9b21803401c2f48/fuzzy_c_means-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d82234a98035cff326bd28cd118d8cb3", "sha256": "951aea7ad69fb67006020a72d898881ee2d7e795a1b4409561e152649d393f7d" }, "downloads": -1, "filename": "fuzzy-c-means-0.0.5.tar.gz", "has_sig": false, "md5_digest": "d82234a98035cff326bd28cd118d8cb3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3247, "upload_time": "2019-05-22T00:16:10", "url": "https://files.pythonhosted.org/packages/0d/7a/c30782f213286a7dff3aaad80c661f5fe3e922a92390abf030d1b49e799b/fuzzy-c-means-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "e108425104dba382e4222994efa38ed9", "sha256": "70049757403ee9e376b7f262a5ebf9033d4a813b4449218d6983bf52df05146f" }, "downloads": -1, "filename": "fuzzy_c_means-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "e108425104dba382e4222994efa38ed9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3500, "upload_time": "2019-06-09T22:04:25", "url": "https://files.pythonhosted.org/packages/99/fa/55219e166bb52dd7ed8e35d744c04eaaa3bdc22eb64f06ed43cf566b9518/fuzzy_c_means-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ce077711aa9a96772c60a94b76a787ee", "sha256": "48708bf9011e755ab2791d85e3740af69f1b34edc38078af1654f4edc99057ed" }, "downloads": -1, "filename": "fuzzy-c-means-0.0.6.tar.gz", "has_sig": false, "md5_digest": "ce077711aa9a96772c60a94b76a787ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3268, "upload_time": "2019-06-09T22:04:26", "url": "https://files.pythonhosted.org/packages/21/7d/0d7f4ff064a87b6f4967e5172f917a2944cad861d3b864426889ecaecd11/fuzzy-c-means-0.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e108425104dba382e4222994efa38ed9", "sha256": "70049757403ee9e376b7f262a5ebf9033d4a813b4449218d6983bf52df05146f" }, "downloads": -1, "filename": "fuzzy_c_means-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "e108425104dba382e4222994efa38ed9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3500, "upload_time": "2019-06-09T22:04:25", "url": "https://files.pythonhosted.org/packages/99/fa/55219e166bb52dd7ed8e35d744c04eaaa3bdc22eb64f06ed43cf566b9518/fuzzy_c_means-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ce077711aa9a96772c60a94b76a787ee", "sha256": "48708bf9011e755ab2791d85e3740af69f1b34edc38078af1654f4edc99057ed" }, "downloads": -1, "filename": "fuzzy-c-means-0.0.6.tar.gz", "has_sig": false, "md5_digest": "ce077711aa9a96772c60a94b76a787ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3268, "upload_time": "2019-06-09T22:04:26", "url": "https://files.pythonhosted.org/packages/21/7d/0d7f4ff064a87b6f4967e5172f917a2944cad861d3b864426889ecaecd11/fuzzy-c-means-0.0.6.tar.gz" } ] }