easycm-0.0.5
توضیحات
A simple python package to plot confusion matrices
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | easycm-0.0.5 |
| نام | easycm |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Victor Henrique Alves Ribeiro |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/vhrique/easycm |
| آدرس اینترنتی | https://pypi.org/project/easycm/ |
| مجوز | BSD-3 |
# Easy CM
A simple python package to plot confusion matrices.

## Installation
```console
foo@bar:~$ pip install easycm
```
## Usage
You can simply call the function with predictions and true values from your classification problem.
```python
from easycm import plot_confusion_matrix
import matplotlib.pyplot as plt
y_true = [False, True, True, False]
y_pred = [False, False, True, True]
plot_confusion_matrix(y_true, y_pred)
plt.show()
```
To include your confusion matrix in subplots, you can do the following
```python
from easycm import plot_confusion_matrix
import matplotlib.pyplot as plt
y_true = [False, True, True, False]
y_pred = [False, False, True, True]
fig, axs = plt.subplots(1, 2)
plot_confusion_matrix(y_true, y_pred, ax=axs[0])
plt.show()
```
You can also customize the labels for the X and Y axis and the title.
```python
from easycm import plot_confusion_matrix
import matplotlib.pyplot as plt
y_true = [False, True, True, False]
y_pred = [False, False, True, True]
plot_confusion_matrix(y_true, y_pred, title='Title', xlabel='X', ylabel='Y')
plt.show()
```
نحوه نصب
نصب پکیج whl easycm-0.0.5:
pip install easycm-0.0.5.whl
نصب پکیج tar.gz easycm-0.0.5:
pip install easycm-0.0.5.tar.gz