{ "info": { "author": "Miguel Olivares and F. Javier Alba", "author_email": "miguel@moliware.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "confumatrix\n===========\n\nConfusion matrix tool.\n\nFurther information:\n\n * http://en.wikipedia.org/wiki/Binary_classification\n * http://en.wikipedia.org/wiki/Sensitivity_and_specificity\n\nInstalation\n-----------\n\nFrom source code: ::\n\n python setup.py install\n\nFrom pypi: ::\n\n pip intall confumatrix\n\n\nUsage\n-----\n::\n\n >>> from confumatrix import ConfuMatrix\n >>> cm = ConfuMatrix(a=10, b=1, c=10, d=3)\n >>> cm.accuracy()\n 0.5416666666666666\n >>> cm.precision()\n 0.9090909090909091\n >>> cm.recall()\n 0.5\n >>> cm.specificity()\n 0.75\n >>> cm.sensitivity()\n 0.5\n >>> cm.f1()\n 0.6451612903225806\n >>> print cm\n =========================\n Confusion Matrix:\n\n 10 1\n 10 3\n\n Accuracy: 0.541666666667\n Recall: 0.5\n Precision: 0.909090909091\n Specificity: 0.75\n F-measure: 0.645161290323\n =========================\n\n\nbinary_classification.py\n------------------------\n\nLoad a yaml file with results of a binary classfication and prints Confusion matrix for that results.\n\nInput file format: ::\n\n # Languages that can be detected\n types: [en, es, pt, it, de]\n umbral: 0.5\n sample: \n - result:\n en: 0.1\n es: 0.2\n pt: 0.3\n it: 0.6666 #hit! ( 0.6666 > 0.5 )\n de: 0.3\n expected: de\n - result:\n en: 0.2\n es: 0.99 # hit\n pt: 0.98 # hit\n it: 0.4\n de: 0.3\n expected: es", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/moliware/confumatrix", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "confumatrix", "package_url": "https://pypi.org/project/confumatrix/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/confumatrix/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/moliware/confumatrix" }, "release_url": "https://pypi.org/project/confumatrix/0.1/", "requires_dist": null, "requires_python": null, "summary": "Confusion matrix tool for binary classification.", "version": "0.1" }, "last_serial": 788376, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "17b5d887948a879ef724a858cfa965ed", "sha256": "df865043837479a2bf239412c9961c074588284e12e6a7b24061d8d081ffdc12" }, "downloads": -1, "filename": "confumatrix-0.1.tar.gz", "has_sig": false, "md5_digest": "17b5d887948a879ef724a858cfa965ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3749, "upload_time": "2011-11-10T09:49:03", "url": "https://files.pythonhosted.org/packages/e9/be/0c25ec31386a064e9d95b0a3150d5362921a47ada6635692a7c130f8b2ea/confumatrix-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "17b5d887948a879ef724a858cfa965ed", "sha256": "df865043837479a2bf239412c9961c074588284e12e6a7b24061d8d081ffdc12" }, "downloads": -1, "filename": "confumatrix-0.1.tar.gz", "has_sig": false, "md5_digest": "17b5d887948a879ef724a858cfa965ed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3749, "upload_time": "2011-11-10T09:49:03", "url": "https://files.pythonhosted.org/packages/e9/be/0c25ec31386a064e9d95b0a3150d5362921a47ada6635692a7c130f8b2ea/confumatrix-0.1.tar.gz" } ] }