June 2020
Intermediate to advanced
382 pages
11h 39m
English
Let's look at the performance metrics of the various algorithms we have presented. This is summarized in the following table:
| Algorithm | Accuracy | Recall | Precision |
| Decision tree | 0.94 | 0.93 | 0.88 |
| XGBoost | 0.93 | 0.90 | 0.87 |
| Random forest | 0.93 | 0.90 | 0.87 |
| Logistic regression | 0.91 | 0.81 | 0.89 |
| SVM | 0.89 | 0.71 | 0.92 |
| Naive Bayes | 0.92 | 0.81 | 0.92 |
Looking at the preceding table, we can observe that the decision tree classifier performs the best in terms of accuracy and recall. If we are looking for precision, then there is a tie between SVM and naive Bayes, so either one will work for us.