{ "info": { "author": "Chris Spencer", "author_email": "chrisspen@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: General" ], "description": "Weka - Python wrapper for Weka classifiers\n==========================================\n\n[![](https://img.shields.io/pypi/v/weka.svg)](https://pypi.python.org/pypi/weka) [![Build Status](https://img.shields.io/travis/chrisspen/weka.svg?branch=master)](https://travis-ci.org/chrisspen/weka) [![](https://pyup.io/repos/github/chrisspen/weka/shield.svg)](https://pyup.io/repos/github/chrisspen/weka)\n\nOverview\n--------\n\nProvides a convenient wrapper for calling Weka classifiers from Python.\n\nInstallation\n------------\n\nFirst install the Weka and LibSVM Java libraries. On Debian/Ubuntu this is simply:\n\n sudo apt-get install weka libsvm-java\n\nThen install the Python package with pip:\n\n sudo pip install weka\n\nUsage\n-----\n\nTrain and test a Weka classifier by instantiating the Classifier class,\npassing in the name of the classifier you want to use:\n\n from weka.classifiers import Classifier\n c = Classifier(name='weka.classifiers.lazy.IBk', ckargs={'-K':1})\n c.train('training.arff')\n predictions = c.predict('query.arff')\n\nAlternatively, you can instantiate the classifier by calling its name directly:\n\n from weka.classifiers import IBk\n c = IBk(K=1)\n c.train('training.arff')\n predictions = c.predict('query.arff')\n\nThe instance contains Weka's serialized model, so the classifier can be easily\npickled and unpickled like any normal Python instance:\n\n c.save('myclassifier.pkl')\n c = Classifier.load('myclassifier.pkl')\n predictions = c.predict('query.arff')\n\nDevelopment\n-----------\n\nTests require the Python development headers to be installed, which you can install on Ubuntu with:\n\n sudo apt-get install python-dev python3-dev python3.4-dev\n\nTo run unittests across multiple Python versions, install:\n\n sudo apt-get install python3.4-minimal python3.4-dev python3.5-minimal python3.5-dev\n\nTo run all [tests](http://tox.readthedocs.org/en/latest/):\n\n export TESTNAME=; tox\n\nTo run tests for a specific environment (e.g. Python 2.7):\n \n export TESTNAME=; tox -e py27\n\nTo run a specific test:\n \n export TESTNAME=.test_IBk; tox -e py27", "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/chrisspen/weka", "keywords": "", "license": "LGPL License", "maintainer": "", "maintainer_email": "", "name": "weka", "package_url": "https://pypi.org/project/weka/", "platform": "OS Independent", "project_url": "https://pypi.org/project/weka/", "project_urls": { "Homepage": "https://github.com/chrisspen/weka" }, "release_url": "https://pypi.org/project/weka/1.0.6/", "requires_dist": null, "requires_python": "", "summary": "A Python wrapper for the Weka data mining library.", "version": "1.0.6" }, "last_serial": 5120175, "releases": { "0.1.1": [], "0.1.2": [ { "comment_text": "", "digests": { "md5": "0ca5d36f3dda95eb150c8d266e016a90", "sha256": "466ad9c1a5a1fd1d7835203479e2b15db46ebf89c7eefe6d399bde32c4da9bf6" }, "downloads": -1, "filename": "weka-0.1.2.tar.gz", "has_sig": false, "md5_digest": "0ca5d36f3dda95eb150c8d266e016a90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14767, "upload_time": "2013-05-31T14:55:29", "url": "https://files.pythonhosted.org/packages/4b/5c/fbbe9f2fd7a5b6f0488ebc5084c14d49017160c12dc0484624a7f6974aa3/weka-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "398457fa018beb785fe938bac7fecb1d", "sha256": "ff165ab15b7c5a9f7a78907326dc5f4b3b9a019357ec0fd6c6d7b171dc6f6dd5" }, "downloads": -1, "filename": "weka-0.1.3.tar.gz", "has_sig": false, "md5_digest": "398457fa018beb785fe938bac7fecb1d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14748, "upload_time": "2013-11-06T21:45:57", "url": "https://files.pythonhosted.org/packages/b8/7b/34216f61fc3ed2769c2ff660c43f75011ce1032d870b771a4610e870184a/weka-0.1.3.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "821da930792dc355dfe95755f461b412", "sha256": "f079aadfa3f1be2bf1ca1488905be06f0f14aac7d5f7e009d6e33aa57158322a" }, "downloads": -1, "filename": "weka-0.1.6.tar.gz", "has_sig": false, "md5_digest": "821da930792dc355dfe95755f461b412", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14108, "upload_time": "2016-03-07T18:51:11", "url": "https://files.pythonhosted.org/packages/36/f0/1d3a3f1cecb2fede192fc3f7353e382309c3dc7d173372e28e9b2e4052dd/weka-0.1.6.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "0a26d4b188167aa37463f9a2c4faa77c", "sha256": "e3c3aebcea165c0dcf870618104d753d93bb142ba2893b478f8114d0eabc5929" }, "downloads": -1, "filename": "weka-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0a26d4b188167aa37463f9a2c4faa77c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14610, "upload_time": "2016-10-28T16:29:32", "url": "https://files.pythonhosted.org/packages/2a/44/2f0c9d771df6894274115075e7c827f891fe5748701573dbc4b62b47c304/weka-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "1699dc87b1109439784f7941e34caf6a", "sha256": "4d4154e1159d0c8147298ce4dac023d64605803d249258142a97c176e2d294f2" }, "downloads": -1, "filename": "weka-1.0.1.tar.gz", "has_sig": false, "md5_digest": "1699dc87b1109439784f7941e34caf6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14766, "upload_time": "2016-12-06T19:10:36", "url": "https://files.pythonhosted.org/packages/b7/cd/3aa5af50537e0a9a9c043aaea4806a8aa855028a0df6e4bbacbd9f353dad/weka-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "f827290f9fa2cc98759523b68bbae337", "sha256": "71fc9f1777164f2e6c36ea48eca17e7b02411597099f69042c264db9f44bb773" }, "downloads": -1, "filename": "weka-1.0.2.tar.gz", "has_sig": false, "md5_digest": "f827290f9fa2cc98759523b68bbae337", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 74037, "upload_time": "2017-12-31T18:54:55", "url": "https://files.pythonhosted.org/packages/89/7b/13adf50cc0e43bfc930b0f8796bd7f72d6f61b8f57805ce28618b2c4bd65/weka-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "27cf17d708bce9116a7370ca533aeb28", "sha256": "bc1666843c4c8917a97abf3bc277b9b9d22691c3efa822c60d44ba9fa15013c2" }, "downloads": -1, "filename": "weka-1.0.3.tar.gz", "has_sig": false, "md5_digest": "27cf17d708bce9116a7370ca533aeb28", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 75092, "upload_time": "2018-07-29T21:37:42", "url": "https://files.pythonhosted.org/packages/26/aa/a4ca4f6811ec6d6eecbdc027b2f9baba5065b99885603e4829d901db9972/weka-1.0.3.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "6d6cf6ea351179b4fc18e9ac34dba2a7", "sha256": "6ae021ac602fbc647533bf70297a44eaecdbaf3b514c6e7567838ea24811e5b6" }, "downloads": -1, "filename": "weka-1.0.5.tar.gz", "has_sig": false, "md5_digest": "6d6cf6ea351179b4fc18e9ac34dba2a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 77115, "upload_time": "2019-04-09T18:18:45", "url": "https://files.pythonhosted.org/packages/24/8e/2c738b3e10952b4fd467e9c42623711445ec3e4f7191bb01e65b81105567/weka-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "822e479ca92ebf49681ab4467a6b329d", "sha256": "eba8e5b92364d2b056d981e7bba35c9bb6e1a94666d76d70ff07fe15bce5a7e1" }, "downloads": -1, "filename": "weka-1.0.6.tar.gz", "has_sig": false, "md5_digest": "822e479ca92ebf49681ab4467a6b329d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 77371, "upload_time": "2019-04-09T18:30:37", "url": "https://files.pythonhosted.org/packages/21/a2/798e83468a9bbe095b590a5a066b0f30b35002a8cb76aa6c2195f2f5359d/weka-1.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "822e479ca92ebf49681ab4467a6b329d", "sha256": "eba8e5b92364d2b056d981e7bba35c9bb6e1a94666d76d70ff07fe15bce5a7e1" }, "downloads": -1, "filename": "weka-1.0.6.tar.gz", "has_sig": false, "md5_digest": "822e479ca92ebf49681ab4467a6b329d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 77371, "upload_time": "2019-04-09T18:30:37", "url": "https://files.pythonhosted.org/packages/21/a2/798e83468a9bbe095b590a5a066b0f30b35002a8cb76aa6c2195f2f5359d/weka-1.0.6.tar.gz" } ] }