{ "info": { "author": "Pankaj Rawat", "author_email": "pankajr141@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# SOM\r\nThis is python implementation for Kohonen Self Organizing map using numpy and tensor\r\n\r\n## Installtion\r\n\r\n**Python 3**\r\n`pip install somlib`\r\n\r\n## Usage\r\n\r\n1. Numpy implementation\r\n\r\n```\r\n\tfrom somlib import som\r\n\ts = som.SOM(neurons=(5,5), dimentions=3, n_iter=500, learning_rate=0.1)\r\n\ts.train(samples) # samples is a n x 3 matrix\r\n\tprint(\"Cluster centres:\", s.weights_)\r\n\tprint(\"labels:\", s.labels_)\r\n\tresult = s.predict(samples)\r\n```\r\n\r\nHere 5,5 is the dimention of neurons, 3 is the number of features. samples is numpy array with each sample a 3 dimentional vector\r\n\r\n2. Tensor implementation\r\n\r\n```\r\n\tfrom somlib import som\r\n\ts = SOM(neurons=(5,5), dimentions=3, n_iter=500, learning_rate=0.1, mode=\"tensor\")\r\n\ts.train(samples) # samples is a n x 3 matrix\r\n\tprint(\"Cluster centres:\", s.weights_)\r\n\tprint(\"labels:\", s.labels_)\r\n\tresult = s.predict(samples)\r\n```\r\n\r\n### Display clusters\r\nTo display clusters after training use this\r\n\r\n```s.displayClusters(samples)```\r\n\r\n\r\n![clusters](https://image.ibb.co/hS4uCH/figure_3.png \"Clusters\")\r\n\r\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pankajr141/SOM", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "somlib", "package_url": "https://pypi.org/project/somlib/", "platform": "", "project_url": "https://pypi.org/project/somlib/", "project_urls": { "Homepage": "https://github.com/pankajr141/SOM" }, "release_url": "https://pypi.org/project/somlib/0.0.4/", "requires_dist": [ "matplotlib", "numpy", "pandas", "scipy", "tensorflow" ], "requires_python": "", "summary": "This is python implementation for Kohonen Self Organizing map using numpy and tensor", "version": "0.0.4" }, "last_serial": 4116444, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "26d3b70acf7faed58af21514fdf1d26a", "sha256": "69ead34d26419920414458a4c98b57a30cc68691c7349e594b491449e97d90a1" }, "downloads": -1, "filename": "somlib-0.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "26d3b70acf7faed58af21514fdf1d26a", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8938, "upload_time": "2018-07-30T12:55:03", "url": "https://files.pythonhosted.org/packages/3e/83/0f388a047b1bb5d2ec9b762f2b449e781e56f87748f8b5056d754b7153fb/somlib-0.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4e8b1358e82eac10546cb2ffc3357e20", "sha256": "42d200fd2cc1b82ff0d42ccc79d285ef6c3d0469223404b456599879827e99e6" }, "downloads": -1, "filename": "somlib-0.0.1.tar.gz", "has_sig": false, "md5_digest": "4e8b1358e82eac10546cb2ffc3357e20", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5208, "upload_time": "2018-07-30T12:55:04", "url": "https://files.pythonhosted.org/packages/c6/a3/67d9007317a9cdc0bc0e39eefe304678168b52fef0708262678986cec5da/somlib-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "a1f30fa8186d73caf6991502816f099b", "sha256": "4a2e9fb52ec7fb3b1caf003cd27f46c84dd445b2fe80dd39310805b177538480" }, "downloads": -1, "filename": "somlib-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "a1f30fa8186d73caf6991502816f099b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 16137, "upload_time": "2018-07-30T13:02:22", "url": "https://files.pythonhosted.org/packages/2a/13/3bf089be4644bfd3846f302d8fd620d995383c352463bc48cf0af8044580/somlib-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0c585cd054ae030824d4aba822763573", "sha256": "47b708fd83e43702225a1e4ae4872c9e60957d4b79ae3635b885de4245156155" }, "downloads": -1, "filename": "somlib-0.0.2.tar.gz", "has_sig": false, "md5_digest": "0c585cd054ae030824d4aba822763573", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5806, "upload_time": "2018-07-30T13:02:24", "url": "https://files.pythonhosted.org/packages/23/8f/4b2cebc4d4292aec31aee10a483ec53cf024e386ecb43ff7e6712b184dec/somlib-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "0fca52072decd82e4e82b8d9d6a688f8", "sha256": "b60a24533920ebdf2af444bf65a028735e76c713512442f3b20a39bfffd9554a" }, "downloads": -1, "filename": "somlib-0.0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "0fca52072decd82e4e82b8d9d6a688f8", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 9609, "upload_time": "2018-07-30T13:08:37", "url": "https://files.pythonhosted.org/packages/a8/93/70928a2d73aed3e46aa9ab86e42b50c4c573bee41690256e98ba0775da50/somlib-0.0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0628a77ece1695795b15b9ec1ebc3a3e", "sha256": "98045a54efa7259db853062c0cef2041964b59878192116e21f6f8c16c1be3b2" }, "downloads": -1, "filename": "somlib-0.0.3.tar.gz", "has_sig": false, "md5_digest": "0628a77ece1695795b15b9ec1ebc3a3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5812, "upload_time": "2018-07-30T13:08:39", "url": "https://files.pythonhosted.org/packages/5b/cb/6c134ade9319f9ef1c0be018bf1a2e0d10a571f1eccc93db6fd443ecf026/somlib-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "ae047c625289ed67a8650cdf99e0783f", "sha256": "3dbeed2556138fc568a38a40a32ad755e4bbd877e09532ff91a5f2efd89d8094" }, "downloads": -1, "filename": "somlib-0.0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "ae047c625289ed67a8650cdf99e0783f", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 10170, "upload_time": "2018-07-30T13:22:18", "url": "https://files.pythonhosted.org/packages/c4/63/be68a94599eaa0fb880751b86607dc09cb31a4918d96b60ea47e71833427/somlib-0.0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "54fdc5e776ce81e7e15b68a2bc4b94a1", "sha256": "620ddbf1beb61e25725b66198cb50e59847401e55ea270dc346d030bffe6e117" }, "downloads": -1, "filename": "somlib-0.0.4.tar.gz", "has_sig": false, "md5_digest": "54fdc5e776ce81e7e15b68a2bc4b94a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6066, "upload_time": "2018-07-30T13:22:21", "url": "https://files.pythonhosted.org/packages/28/c3/8d500699b256fda57c6ee2bee42cc34035fa30a71ed8b05e6fc9403fe9f2/somlib-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ae047c625289ed67a8650cdf99e0783f", "sha256": "3dbeed2556138fc568a38a40a32ad755e4bbd877e09532ff91a5f2efd89d8094" }, "downloads": -1, "filename": "somlib-0.0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "ae047c625289ed67a8650cdf99e0783f", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 10170, "upload_time": "2018-07-30T13:22:18", "url": "https://files.pythonhosted.org/packages/c4/63/be68a94599eaa0fb880751b86607dc09cb31a4918d96b60ea47e71833427/somlib-0.0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "54fdc5e776ce81e7e15b68a2bc4b94a1", "sha256": "620ddbf1beb61e25725b66198cb50e59847401e55ea270dc346d030bffe6e117" }, "downloads": -1, "filename": "somlib-0.0.4.tar.gz", "has_sig": false, "md5_digest": "54fdc5e776ce81e7e15b68a2bc4b94a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6066, "upload_time": "2018-07-30T13:22:21", "url": "https://files.pythonhosted.org/packages/28/c3/8d500699b256fda57c6ee2bee42cc34035fa30a71ed8b05e6fc9403fe9f2/somlib-0.0.4.tar.gz" } ] }