International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
|
Volume 186 - Issue 50 |
Published: November 2024 |
Authors: Ahmad Farhan Alshammari |
![]() |
Ahmad Farhan Alshammari . Implementation of Model Evaluation Using Confusion Matrix in Python. International Journal of Computer Applications. 186, 50 (November 2024), 42-48. DOI=10.5120/ijca2024924236
@article{ 10.5120/ijca2024924236, author = { Ahmad Farhan Alshammari }, title = { Implementation of Model Evaluation Using Confusion Matrix in Python }, journal = { International Journal of Computer Applications }, year = { 2024 }, volume = { 186 }, number = { 50 }, pages = { 42-48 }, doi = { 10.5120/ijca2024924236 }, publisher = { Foundation of Computer Science (FCS), NY, USA } }
%0 Journal Article %D 2024 %A Ahmad Farhan Alshammari %T Implementation of Model Evaluation Using Confusion Matrix in Python%T %J International Journal of Computer Applications %V 186 %N 50 %P 42-48 %R 10.5120/ijca2024924236 %I Foundation of Computer Science (FCS), NY, USA
The goal of this research is to develop a model evaluation program using confusion matrix in Python. Model evaluation is used to measure the performance of the applied model by comparing the predicted data with the actual data. Confusion matrix is used to summarize the predictions of the applied model and compute the evaluation metrics. The basic steps of model evaluation using confusion matrix are explained: preparing data (actual and predicted), computing confusion matrix, computing totals (sum of items, diagonal, rows, and columns), computing evaluation metrics (accuracy, precision, recall, and F1-score), printing evaluation metrics, and plotting confusion matrix. The developed program was tested on an experimental dataset. The program successfully performed the basic steps of model evaluation using confusion matrix and provided the required results.