classeval 0.2.2
Python package classeval
Requires Python: >=3

# classeval

[![Python](https://img.shields.io/pypi/pyversions/classeval)](https://img.shields.io/pypi/pyversions/classeval)
[![PyPI Version](https://img.shields.io/pypi/v/classeval)](https://pypi.org/project/classeval/)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/classeval/blob/master/LICENSE)
[![Forks](https://img.shields.io/github/forks/erdogant/classeval.svg)](https://github.com/erdogant/classeval/network)
[![Open Issues](https://img.shields.io/github/issues/erdogant/classeval.svg)](https://github.com/erdogant/classeval/issues)
[![Project Status](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)
[![Downloads](https://pepy.tech/badge/classeval/month)](https://pepy.tech/project/classeval/)
[![Downloads](https://pepy.tech/badge/classeval)](https://pepy.tech/project/classeval)
[![DOI](https://zenodo.org/badge/246504758.svg)](https://zenodo.org/badge/latestdoi/246504758)
[![Docs](https://img.shields.io/badge/Sphinx-Docs-Green)](https://erdogant.github.io/classeval/)
[![Donate](https://img.shields.io/badge/Support%20this%20project-grey.svg?logo=github%20sponsors)](https://erdogant.github.io/classeval/pages/html/Documentation.html#)
<!---[![BuyMeCoffee](https://img.shields.io/badge/buymea-coffee-yellow.svg)](https://www.buymeacoffee.com/erdogant)-->
<!---[![Coffee](https://img.shields.io/badge/coffee-black-grey.svg)](https://erdogant.github.io/donate/?currency=USD&amount=5)-->


The 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.

# 
**⭐️ Star this repo if you like it ⭐️**
# 


### [Documentation pages](https://erdogant.github.io/classeval/)

On the [documentation pages](https://erdogant.github.io/classeval/) you can find more information about ``classeval`` with examples. 

# 

##### Install classeval from PyPI
```bash
pip install classeval     # normal install
pip install -U classeval  # update if needed
```


### Import classeval package
```python
import classeval as clf

```

<hr>

### Examples

# 

#### [Example: Evaluate Two-class model](https://erdogant.github.io/classeval/pages/html/Examples.html)

<p align="left">
  <a href="https://erdogant.github.io/classeval/pages/html/Examples.html">
  <img src="https://github.com/erdogant/classeval/blob/master/docs/figs/Figure_1.png" width="600" />
    <br>
  <img src="https://github.com/erdogant/classeval/blob/master/docs/figs/Figure_2.png" width="400" />
  </a>
</p>


#

#### [Example: Evaluate multi-class model](https://erdogant.github.io/classeval/pages/html/Examples.html#examples-multi-class-model)

<p align="left">
  <a href="https://erdogant.github.io/classeval/pages/html/Examples.html#examples-multi-class-model">
  <img src="https://github.com/erdogant/classeval/blob/master/docs/figs/multiclass_fig1_1.png" width="400" />
    <br>
  <img src="https://github.com/erdogant/classeval/blob/master/docs/figs/multiclass_fig1_3.png" width="400" />
    <br>
  <img src="https://github.com/erdogant/classeval/blob/master/docs/figs/multiclass_fig1_4.png" width="400" />
  </a>
</p>


#### [Example: Model performance tweaking](https://erdogant.github.io/classeval/pages/html/Examples.html#model-performance-tweaking)

<p align="left">
  <a href="https://erdogant.github.io/classeval/pages/html/Examples.html#model-performance-tweaking">
  <img src="https://github.com/erdogant/classeval/blob/master/docs/figs/multiclass_threshold_05.png" width="600" />
  </a>
</p>
<hr>

<hr>

### Contribute
* All kinds of contributions are welcome!

### Citation
Please cite ``classeval`` in your publications if this is useful for your research. See column right for citation information.

### Maintainer
* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
* Contributions are welcome.
* If you wish to buy me a <a href="https://erdogant.github.io/donate/?currency=USD&amount=5">Coffee</a> for this work, it is very appreciated :)