> For the complete documentation index, see [llms.txt](https://mugdha-thanawala.gitbook.io/tkmt_package/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mugdha-thanawala.gitbook.io/tkmt_package/guides/performance-evaluation/classification.md).

# Classification

Graphical Representation

{% hint style="info" %}
`Evaluation.get_plot_classification(true, pred, ascending, label)`
{% endhint %}

Plots the confusion matrix.

```python
Parameters
----------
true: actual output
pred: predicted output
X_labels: labels on the x axis             
y_labels: labels on the y axis 
cmap_index: 178 possible colour combinations 
figsize: size of the confusion matrix figure
title: title of the figure

Example
-------
>>> from tkmt_package.evaluation import Evaluation
>>> eva = Evaluation()
>>> true, pred = eva.get_plot_classification(true, pred, X_labels,
                 y_labels, cmap_index= 3, figsize=(10,10), 
                 title='Voting Classifier')
```
