{ "info": { "author": "IAZero", "author_email": "aluizio@cos.ufrj.br", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License" ], "description": "# wisardpkg [![](https://img.shields.io/pypi/v/wisardpkg.svg)](https://pypi.org/project/wisardpkg/) [![](https://travis-ci.org/IAZero/wisardpkg.svg?branch=master)](https://travis-ci.org/IAZero/wisardpkg)\n\n## Description:\nThis is a project to make available the different models based on WiSARD,\nwith high performance, easy to use and to install and following a pattern of use.\nThese provided models are machine learning models,\nwith supervised, unsupervised and semi-supervised learning.\n\n## to install:\npython:\n```\npip install wisardpkg\n```\nWorks to python2 and pyhton3. \nIf you are on Linux and not in a virtual environment, you may need to run as superuser.\n\n#### obs:\nTo install on windows platform you can use [anaconda](https://anaconda.org/) and do:\n```\npython -m pip install wisardpkg\n```\nc++:\ncopy the file wisardpkg.hpp inside your project \n```\ninclude/wisardpkg.hpp\n```\n\n## to uninstall:\n```\npip uninstall wisardpkg\n```\n\n## to import:\npython:\n```python\nimport wisardpkg as wp\n```\nc++:\n```c++\n# include \"wisardpkg.hpp\"\n\nnamespace wp = wisardpkg;\n```\n\n## to use:\n### WiSARD\n\nWiSARD with bleaching by default:\n\npython:\n```python\n# load input data, just zeros and ones \nX = [\n [1,1,1,0,0,0,0,0],\n [1,1,1,1,0,0,0,0],\n [0,0,0,0,1,1,1,1],\n [0,0,0,0,0,1,1,1]\n ]\n\n# load label data, which must be a string array\ny = [\n \"cold\",\n \"cold\",\n \"hot\",\n \"hot\"\n ]\n\n\naddressSize = 3 # number of addressing bits in the ram\nignoreZero = False # optional; causes the rams to ignore the address 0\n\n# False by default for performance reasons,\n# when True, WiSARD prints the progress of train() and classify()\nverbose = True\n\nwsd = wp.Wisard(addressSize, ignoreZero=ignoreZero, verbose=verbose)\n\n\n\n# train using the input data\nwsd.train(X,y)\n\n# classify some data\nout = wsd.classify(X)\n\n# the output of classify is a string list in the same sequence as the input\nfor i,d in enumerate(X):\n print(out[i],d)\n```\nc++:\n```c++\n\nvector> X(4);\nX[0] = {1,1,1,0,0,0,0,0};\nX[1] = {1,1,1,1,0,0,0,0};\nX[2] = {0,0,0,0,1,1,1,1};\nX[3] = {0,0,0,0,0,1,1,1};\n\nvector y = {\n \"cold\",\n \"cold\",\n \"hot\",\n \"hot\"\n};\n\n\nwp::Wisard w(3, {\n {\"ignoreZero\", false},\n {\"verbose\", true}\n});\n\nw.train(X,y);\n\nvector out = w.classify(X);\n\nfor(int i=0; i<4; i++){\n cout << \"i: \" << i << \"; class: \" << out[i] << endl;\n}\n\n```\n### ClusWiSARD\n\nClusWiSARD with bleaching by default:\n```python\naddressSize = 3 # number of addressing bits in the ram.\nminScore = 0.1 # min score of training process\nthreshold = 10 # limit of training cycles by discriminator\ndiscriminatorLimit = 5 # limit of discriminators by clusters\n\n# False by default for performance reasons\n# when enabled,e ClusWiSARD prints the progress of train() and classify()\nverbose = True\n\nclus = ClusWisard(addressSize, minScore, threshold, discriminatorLimit, verbose=True)\n\n\n\n# train using the input data\nclus.train(X,y)\n\n# optionally you can train using arbitrary labels for the data\n# input some labels in a dict,\n# the keys must be integer indices indicating which input array the entry is associated to,\n# the values are the labels which must be strings\ny2 = {\n 1: \"cold\",\n 3: \"hot\"\n}\n\nclus.train(X,y2)\n\n# classify some data\nout = clus.classify(X)\n\n# the output of classify is a string list in the same sequence as the input\nfor i,d in enumerate(X):\n print(out[i], d)\n```\n\n## Documentation:\nYou can find the complete documentation in the [page](https://iazero.github.io/wisardpkg/).\n\n## Build on libraries:\n[pybind11](https://github.com/pybind/pybind11)\n[nlohmann/json](https://github.com/nlohmann/json)", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/IAZero/wisardpkg/archive/v1.6.3.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/IAZero/wisardpkg", "keywords": "wisard,weithgless,neural,net", "license": "", "maintainer": "", "maintainer_email": "", "name": "wisardpkg", "package_url": "https://pypi.org/project/wisardpkg/", "platform": "", "project_url": "https://pypi.org/project/wisardpkg/", "project_urls": { "Download": "https://github.com/IAZero/wisardpkg/archive/v1.6.3.tar.gz", "Homepage": "https://github.com/IAZero/wisardpkg" }, "release_url": "https://pypi.org/project/wisardpkg/1.6.3/", "requires_dist": null, "requires_python": "", "summary": "A library of wisard with some models based on wisard", "version": "1.6.3" }, "last_serial": 5523213, "releases": { "0.0.5": [ { "comment_text": "", "digests": { "md5": "e7fe1a01fc13a9096772b5551b205d85", "sha256": "c7e5746fdd60e42603d8747d5b5ecc0eb8e18f416c5ceb96c7017e1a7ef356de" }, "downloads": -1, "filename": "wisardpkg-0.0.5.tar.gz", "has_sig": false, "md5_digest": "e7fe1a01fc13a9096772b5551b205d85", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10757, "upload_time": "2018-06-06T04:06:09", "url": "https://files.pythonhosted.org/packages/c3/78/b95be53332141276e3355c04bee9fb7a4a2f84c6da889f2b4f53041fc7fb/wisardpkg-0.0.5.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "665e83dd81eef7e036c25ab9d6d83fd5", "sha256": "6bf46f0e58c7d1cb8cb126667e39484c7edee642cede1b2121e7f1d6e65035b8" }, "downloads": -1, "filename": "wisardpkg-1.0.0.tar.gz", "has_sig": false, "md5_digest": "665e83dd81eef7e036c25ab9d6d83fd5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11267, "upload_time": "2018-07-05T04:31:39", "url": "https://files.pythonhosted.org/packages/8a/28/badeb9fb7a32237a87aec02bcd13fb6e354fb4144c9c9740d1b375d31f69/wisardpkg-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "f16135ea4905a8857b67f14b29863e70", "sha256": "53cdae4a8f18e291ceb6b8d12b3f011dc619547f341fca58ab480a0f75ad8d74" }, "downloads": -1, "filename": "wisardpkg-1.0.1.tar.gz", "has_sig": false, "md5_digest": "f16135ea4905a8857b67f14b29863e70", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11459, "upload_time": "2018-07-10T14:28:35", "url": "https://files.pythonhosted.org/packages/80/09/87993bc8f52fcf6cc1bf15bac770f3a31fe374607062094e4f17440a764b/wisardpkg-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "93c83b07834589c74941dfe031e8ae20", "sha256": "0d392e8c3d9b3c21b11aba0750bf1a2b6081954a41ce65d1539452fbd14a7c13" }, "downloads": -1, "filename": "wisardpkg-1.0.2.tar.gz", "has_sig": false, "md5_digest": "93c83b07834589c74941dfe031e8ae20", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12859, "upload_time": "2018-07-10T15:08:46", "url": "https://files.pythonhosted.org/packages/3c/22/d6f8f7e08a2c2ec76b6285f128ecf8ac5895dce6ce7286dc03e09fd4211b/wisardpkg-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "ffb49e594f3d7fa1fb6f134aac475295", "sha256": "272d6790aaa8fe3ea4ea61af643469cc186f3d50fc9fc48f381b58c11e5d4098" }, "downloads": -1, "filename": "wisardpkg-1.1.0.tar.gz", "has_sig": false, "md5_digest": "ffb49e594f3d7fa1fb6f134aac475295", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 118625, "upload_time": "2018-07-28T19:18:09", "url": "https://files.pythonhosted.org/packages/28/e1/aadcab65e12436ac55304777a4edf3c3dbbf03f348e97805617b5d84286d/wisardpkg-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "cb7ad6d66039df5c4712755d4c0af9a1", "sha256": "ff43c1ab2654e9c450fb407b7518f130c74e9b6f701c57b58a5937a37afc06c1" }, "downloads": -1, "filename": "wisardpkg-1.1.1.tar.gz", "has_sig": false, "md5_digest": "cb7ad6d66039df5c4712755d4c0af9a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 118738, "upload_time": "2018-08-01T22:00:35", "url": "https://files.pythonhosted.org/packages/f1/9e/bd8d58abd30db3bf06980497009fc75e5df9b1eb685fc3afae3248a19b4e/wisardpkg-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "b9ccfd40e4548678d2abce95250b7ad6", "sha256": "089942aa04c8de69a70fa080a0fa1cc37429e9e6be9a622a16a0f1d0311bea53" }, "downloads": -1, "filename": "wisardpkg-1.2.0.tar.gz", "has_sig": false, "md5_digest": "b9ccfd40e4548678d2abce95250b7ad6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 119064, "upload_time": "2018-08-08T20:50:11", "url": "https://files.pythonhosted.org/packages/54/23/2c00088ec9a2024251f96fc1e1d6195ef73390c7f1ff853e5a135d7b625e/wisardpkg-1.2.0.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "cc496d47a6ad73611e8c2e7fda3a650b", "sha256": "32600dee225700e0bee43d1c70f330f18f829892348b56264c262329c6d1a809" }, "downloads": -1, "filename": "wisardpkg-1.3.0.tar.gz", "has_sig": false, "md5_digest": "cc496d47a6ad73611e8c2e7fda3a650b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 119085, "upload_time": "2018-09-12T01:08:27", "url": "https://files.pythonhosted.org/packages/57/a7/468044a3e3b09f8e4d66ff686ea21b56ae1adf1dcd49fa6d46cb068fd85e/wisardpkg-1.3.0.tar.gz" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "d15b943db0618185e9e875463081f0f0", "sha256": "c54dcd3674453d3a7e5062eacbe03071e782e4b8b54dc4c950cc7bd61e39bd09" }, "downloads": -1, "filename": "wisardpkg-1.3.1.tar.gz", "has_sig": false, "md5_digest": "d15b943db0618185e9e875463081f0f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 118955, "upload_time": "2018-09-17T18:23:18", "url": "https://files.pythonhosted.org/packages/67/54/11d858af11d3049edefb00b5ccd945d557e5f1a1861b351705751a619193/wisardpkg-1.3.1.tar.gz" } ], "1.3.2": [ { "comment_text": "", "digests": { "md5": "a538a67be761e424f7d932ad60de21d4", "sha256": "6275093341b8a6af6c52bc8796543bd1294b2962f5e9ec2f556278e0e4b3fada" }, "downloads": -1, "filename": "wisardpkg-1.3.2.tar.gz", "has_sig": false, "md5_digest": "a538a67be761e424f7d932ad60de21d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 119060, "upload_time": "2018-09-17T22:25:58", "url": "https://files.pythonhosted.org/packages/4d/1d/64804e2d964b87a313278d191c6f0b8b03e09e0d5a261711e1d5835708de/wisardpkg-1.3.2.tar.gz" } ], "1.3.3": [ { "comment_text": "", "digests": { "md5": "e1aab166627e8e589aafeaf2dfa249f9", "sha256": "81bf62bd287b2699a89406d7374e1e2cdf0ff78024832f077e7a4e4f1c94cd35" }, "downloads": -1, "filename": "wisardpkg-1.3.3.tar.gz", "has_sig": false, "md5_digest": "e1aab166627e8e589aafeaf2dfa249f9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 118986, "upload_time": "2018-09-17T23:26:24", "url": "https://files.pythonhosted.org/packages/1e/80/f36eb1e6a0be76450dc0513e0d294c8d7eb6afdb18bff8ad5e8b26500d46/wisardpkg-1.3.3.tar.gz" } ], "1.3.4": [ { "comment_text": "", "digests": { "md5": "a8486ccfaa8f3d56e578251883f88604", "sha256": "38faf73fcf3c6af49afa04cdcc5230f65d5533ffa650130b6702a3b17c63c9b9" }, "downloads": -1, "filename": "wisardpkg-1.3.4.tar.gz", "has_sig": false, "md5_digest": "a8486ccfaa8f3d56e578251883f88604", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 119024, "upload_time": "2018-09-18T23:43:30", "url": "https://files.pythonhosted.org/packages/8c/a2/58eab5cd9e258a265d8e11454dd97abf3ed39316fa6509f838b04574a240/wisardpkg-1.3.4.tar.gz" } ], "1.3.5": [ { "comment_text": "", "digests": { "md5": "c9e48d1a2b71d098e0710e4092104087", "sha256": "4bb6538583cbbcc381554f2c5af3a0083947b4bbbd5625b50dd41fe8fde5af1c" }, "downloads": -1, "filename": "wisardpkg-1.3.5.tar.gz", "has_sig": false, "md5_digest": "c9e48d1a2b71d098e0710e4092104087", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 119108, "upload_time": "2018-09-25T14:45:11", "url": "https://files.pythonhosted.org/packages/d4/c9/764242076e17a1ab0cc9e9e84f661b316fb302e49dd308bd94b20c1a44fa/wisardpkg-1.3.5.tar.gz" } ], "1.3.6": [ { "comment_text": "", "digests": { "md5": "460413595bb7fad97f235cf392cfe538", "sha256": "885455799d8e3c1a659ceeb8f8bdd95c43b87381c17b38464390b0f7b9f54174" }, "downloads": -1, "filename": "wisardpkg-1.3.6.tar.gz", "has_sig": false, "md5_digest": "460413595bb7fad97f235cf392cfe538", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 118468, "upload_time": "2018-10-02T02:39:26", "url": "https://files.pythonhosted.org/packages/e8/2c/5033a6d310c8df53aec8d25d3f7c55e585f212a14a452c5cb74e8de263b9/wisardpkg-1.3.6.tar.gz" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "d2cdb56672e02a53319ad840afc3da47", "sha256": "f877b97b49b306a3e5db81b5802025b040d9669746794394f0a0448a1377363a" }, "downloads": -1, "filename": "wisardpkg-1.4.0.tar.gz", "has_sig": false, "md5_digest": "d2cdb56672e02a53319ad840afc3da47", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 119536, "upload_time": "2018-10-04T02:49:11", "url": "https://files.pythonhosted.org/packages/25/95/1f4040777046c6132e9cea2b477ae2b0fd095b6c7cb3ceb060a71799fd50/wisardpkg-1.4.0.tar.gz" } ], "1.5.2": [ { "comment_text": "", "digests": { "md5": "a146e50c646c26b3fc401f79f2615478", "sha256": "60e4c3ee2e587187592aceae7b6a338386bb19ec6f9df1c28cacaa463477d36e" }, "downloads": -1, "filename": "wisardpkg-1.5.2.tar.gz", "has_sig": false, "md5_digest": "a146e50c646c26b3fc401f79f2615478", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 121827, "upload_time": "2018-12-22T17:29:06", "url": "https://files.pythonhosted.org/packages/2e/79/9efb1ba236597b5991b10a30e5aa670e4f37d94650d7ded9eb47113b479e/wisardpkg-1.5.2.tar.gz" } ], "1.6.0": [ { "comment_text": "", "digests": { "md5": "367230d5155995d487b65e695fb460c5", "sha256": "0c083b8603967b1764bb482366bba9abd52b207229e03d37cc34c91f3bade4b8" }, "downloads": -1, "filename": "wisardpkg-1.6.0.tar.gz", "has_sig": false, "md5_digest": "367230d5155995d487b65e695fb460c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 122876, "upload_time": "2019-01-09T20:32:42", "url": "https://files.pythonhosted.org/packages/25/9b/8bf7c19fbe0879b63e41834b8c70d17e32b8c536d42d052989310de5b489/wisardpkg-1.6.0.tar.gz" } ], "1.6.1": [ { "comment_text": "", "digests": { "md5": "fb594972aac939eb81a87e091d6700b5", "sha256": "be29d7bce46a2cd807b57bc26c0cddf8d8c24eec352abf63af078d3483f28a58" }, "downloads": -1, "filename": "wisardpkg-1.6.1.tar.gz", "has_sig": false, "md5_digest": "fb594972aac939eb81a87e091d6700b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 124545, "upload_time": "2019-02-04T18:03:51", "url": "https://files.pythonhosted.org/packages/1c/07/ad7a408773eac45dd573c5101d9004b475c6c3fabce9e9325e477febf118/wisardpkg-1.6.1.tar.gz" } ], "1.6.2": [ { "comment_text": "", "digests": { "md5": "3c8699dad59816b819c65419fd4c587f", "sha256": "684bf6814bbacf6137a83874ac38807414acabfab421ee4caba03d1d6de86af2" }, "downloads": -1, "filename": "wisardpkg-1.6.2.tar.gz", "has_sig": false, "md5_digest": "3c8699dad59816b819c65419fd4c587f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 124502, "upload_time": "2019-02-04T23:28:53", "url": "https://files.pythonhosted.org/packages/e7/c6/ff9d923fd9a084f7f2c7540b0f677c944be32b57604b2bcc312e0e33dfd5/wisardpkg-1.6.2.tar.gz" } ], "1.6.3": [ { "comment_text": "", "digests": { "md5": "6c7a3a73103ce62a05493715df5438c2", "sha256": "c4d8cd15389c7945a9ed4ca79591a495912fd91842468abc83ac23a1951d17de" }, "downloads": -1, "filename": "wisardpkg-1.6.3.tar.gz", "has_sig": false, "md5_digest": "6c7a3a73103ce62a05493715df5438c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 126505, "upload_time": "2019-02-09T15:44:15", "url": "https://files.pythonhosted.org/packages/f1/6d/02c4cc15ce041f26710fdf319bbb469372b22212fe5c8364615fe8b25f72/wisardpkg-1.6.3.tar.gz" } ], "2.0.0a1": [ { "comment_text": "", "digests": { "md5": "4e2d9a1f6e5d70aed92a2fd621ed6cef", "sha256": "fe7827192e0e76cc47fb872767939b4fe0e3b8f66ad38c5bbc80e61ca81378a3" }, "downloads": -1, "filename": "wisardpkg-2.0.0a1.tar.gz", "has_sig": false, "md5_digest": "4e2d9a1f6e5d70aed92a2fd621ed6cef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 130468, "upload_time": "2019-04-26T00:05:39", "url": "https://files.pythonhosted.org/packages/e3/32/aa46b9dd9ea57e59077e77d5b0beec4dcde2c298e42e5f90d1298f5eb09d/wisardpkg-2.0.0a1.tar.gz" } ], "2.0.0a2": [ { "comment_text": "", "digests": { "md5": "69fa48ace9205340db2733915a5ad68e", "sha256": "4695f755869343dfb9e8e97eed007a8f9a26128e81399691cfdc0056e80e47c6" }, "downloads": -1, "filename": "wisardpkg-2.0.0a2.tar.gz", "has_sig": false, "md5_digest": "69fa48ace9205340db2733915a5ad68e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 136785, "upload_time": "2019-05-07T04:09:33", "url": "https://files.pythonhosted.org/packages/13/f3/a911ee52556dd0ef4b442d8028db79a9a1248523392c81326ef4976ec780/wisardpkg-2.0.0a2.tar.gz" } ], "2.0.0a3": [ { "comment_text": "", "digests": { "md5": "c45c3038e4e3fa6cf6aa4fefcaa5ef52", "sha256": "6c7e0e558da732c6892e403b9570982eb9f2c786d7e2f6cb9ff3b7a6d19ce11c" }, "downloads": -1, "filename": "wisardpkg-2.0.0a3.tar.gz", "has_sig": false, "md5_digest": "c45c3038e4e3fa6cf6aa4fefcaa5ef52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 139583, "upload_time": "2019-06-29T16:43:56", "url": "https://files.pythonhosted.org/packages/3d/f4/c6af6308fbbc13b2c4163968245bbf49f49b7f7be2a1f939fa2dc2364ba0/wisardpkg-2.0.0a3.tar.gz" } ], "2.0.0a4": [ { "comment_text": "", "digests": { "md5": "ab58ee5edd08eedfe17bc2dc28209100", "sha256": "e78528a826e9fb321c49d8a84bebbbdae9078aeac3f3f77c7c302bb6e5dd2a6a" }, "downloads": -1, "filename": "wisardpkg-2.0.0a4.tar.gz", "has_sig": false, "md5_digest": "ab58ee5edd08eedfe17bc2dc28209100", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 139884, "upload_time": "2019-07-12T13:35:03", "url": "https://files.pythonhosted.org/packages/af/70/125d9ed96d2515be33b5bac502f07a81fc59f9ee82c3f5fa2a39f7a4a413/wisardpkg-2.0.0a4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6c7a3a73103ce62a05493715df5438c2", "sha256": "c4d8cd15389c7945a9ed4ca79591a495912fd91842468abc83ac23a1951d17de" }, "downloads": -1, "filename": "wisardpkg-1.6.3.tar.gz", "has_sig": false, "md5_digest": "6c7a3a73103ce62a05493715df5438c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 126505, "upload_time": "2019-02-09T15:44:15", "url": "https://files.pythonhosted.org/packages/f1/6d/02c4cc15ce041f26710fdf319bbb469372b22212fe5c8364615fe8b25f72/wisardpkg-1.6.3.tar.gz" } ] }