{"id":17465018,"url":"https://github.com/erdogant/classeval","last_synced_at":"2025-07-03T14:08:31.719Z","repository":{"id":62562453,"uuid":"246504758","full_name":"erdogant/classeval","owner":"erdogant","description":"Evaluation of supervised predictions for two-class and multi-class classifiers","archived":false,"fork":false,"pushed_at":"2025-03-02T22:27:47.000Z","size":7843,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T15:28:47.777Z","etag":null,"topics":["auc","classification","evaluation-functions","evaluation-metrics","plot","python","receiver-operating-characteristic"],"latest_commit_sha":null,"homepage":"https://erdogant.github.io/classeval","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erdogant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["erdogant"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2020-03-11T07:35:55.000Z","updated_at":"2025-03-02T22:27:51.000Z","dependencies_parsed_at":"2025-04-12T15:41:55.805Z","dependency_job_id":null,"html_url":"https://github.com/erdogant/classeval","commit_stats":{"total_commits":92,"total_committers":2,"mean_commits":46.0,"dds":"0.26086956521739135","last_synced_commit":"d352146f9729cbb302a0744b734589231ea365e6"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fclasseval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fclasseval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fclasseval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fclasseval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erdogant","download_url":"https://codeload.github.com/erdogant/classeval/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249789288,"owners_count":21325803,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auc","classification","evaluation-functions","evaluation-metrics","plot","python","receiver-operating-characteristic"],"created_at":"2024-10-18T11:08:29.144Z","updated_at":"2025-04-19T20:14:35.055Z","avatar_url":"https://github.com/erdogant.png","language":"Python","funding_links":["https://github.com/sponsors/erdogant","https://www.buymeacoffee.com/erdogant)--"],"categories":[],"sub_categories":[],"readme":"# classeval\n\n[![Python](https://img.shields.io/pypi/pyversions/classeval)](https://img.shields.io/pypi/pyversions/classeval)\n[![PyPI Version](https://img.shields.io/pypi/v/classeval)](https://pypi.org/project/classeval/)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/classeval/blob/master/LICENSE)\n[![Forks](https://img.shields.io/github/forks/erdogant/classeval.svg)](https://github.com/erdogant/classeval/network)\n[![Open Issues](https://img.shields.io/github/issues/erdogant/classeval.svg)](https://github.com/erdogant/classeval/issues)\n[![Project Status](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)\n[![Downloads](https://pepy.tech/badge/classeval/month)](https://pepy.tech/project/classeval/)\n[![Downloads](https://pepy.tech/badge/classeval)](https://pepy.tech/project/classeval)\n[![DOI](https://zenodo.org/badge/246504758.svg)](https://zenodo.org/badge/latestdoi/246504758)\n[![Docs](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/classeval/)\n[![Donate](https://img.shields.io/badge/Support%20this%20project-grey.svg?logo=github%20sponsors)](https://erdogant.github.io/classeval/pages/html/Documentation.html#)\n\u003c!---[![BuyMeCoffee](https://img.shields.io/badge/buymea-coffee-yellow.svg)](https://www.buymeacoffee.com/erdogant)--\u003e\n\u003c!---[![Coffee](https://img.shields.io/badge/coffee-black-grey.svg)](https://erdogant.github.io/donate/?currency=USD\u0026amount=5)--\u003e\n\n\nThe library ``classeval`` is developed to evaluate the models performance of any kind of **two-class** or **multi-class** model. ``classeval`` computes many scoring measures in case of a two-class clasification model. Some measures are utilized from ``sklearn``, among them AUC, MCC, Cohen kappa score, matthews correlation coefficient, whereas others are custom. This library can help to consistenly compare the output of various models. In addition, it can also give insights in tuning the models performance as the the threshold being used can be adjusted and evaluated. The output of ``classeval`` can subsequently plotted in terms of ROC curves, confusion matrices, class distributions, and probability plots. Such plots can help in better understanding of the results.\n\n# \n**⭐️ Star this repo if you like it ⭐️**\n# \n\n\n### [Documentation pages](https://erdogant.github.io/classeval/)\n\nOn the [documentation pages](https://erdogant.github.io/classeval/) you can find more information about ``classeval`` with examples. \n\n# \n\n##### Install classeval from PyPI\n```bash\npip install classeval     # normal install\npip install -U classeval  # update if needed\n```\n\n\n### Import classeval package\n```python\nimport classeval as clf\n\n```\n\n\u003chr\u003e\n\n### Examples\n\n# \n\n#### [Example: Evaluate Two-class model](https://erdogant.github.io/classeval/pages/html/Examples.html)\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://erdogant.github.io/classeval/pages/html/Examples.html\"\u003e\n  \u003cimg src=\"https://github.com/erdogant/classeval/blob/master/docs/figs/Figure_1.png\" width=\"600\" /\u003e\n    \u003cbr\u003e\n  \u003cimg src=\"https://github.com/erdogant/classeval/blob/master/docs/figs/Figure_2.png\" width=\"400\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n#\n\n#### [Example: Evaluate multi-class model](https://erdogant.github.io/classeval/pages/html/Examples.html#examples-multi-class-model)\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://erdogant.github.io/classeval/pages/html/Examples.html#examples-multi-class-model\"\u003e\n  \u003cimg src=\"https://github.com/erdogant/classeval/blob/master/docs/figs/multiclass_fig1_1.png\" width=\"400\" /\u003e\n    \u003cbr\u003e\n  \u003cimg src=\"https://github.com/erdogant/classeval/blob/master/docs/figs/multiclass_fig1_3.png\" width=\"400\" /\u003e\n    \u003cbr\u003e\n  \u003cimg src=\"https://github.com/erdogant/classeval/blob/master/docs/figs/multiclass_fig1_4.png\" width=\"400\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n#### [Example: Model performance tweaking](https://erdogant.github.io/classeval/pages/html/Examples.html#model-performance-tweaking)\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://erdogant.github.io/classeval/pages/html/Examples.html#model-performance-tweaking\"\u003e\n  \u003cimg src=\"https://github.com/erdogant/classeval/blob/master/docs/figs/multiclass_threshold_05.png\" width=\"600\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003chr\u003e\n\n\u003chr\u003e\n\n### Contribute\n* All kinds of contributions are welcome!\n\n### Citation\nPlease cite ``classeval`` in your publications if this is useful for your research. See column right for citation information.\n\n### Maintainer\n* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)\n* Contributions are welcome.\n* If you wish to buy me a \u003ca href=\"https://erdogant.github.io/donate/?currency=USD\u0026amount=5\"\u003eCoffee\u003c/a\u003e for this work, it is very appreciated :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdogant%2Fclasseval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferdogant%2Fclasseval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdogant%2Fclasseval/lists"}