Skip to content

Step 4 (Model building)

Maryam Ahmadi J edited this page Dec 18, 2022 · 7 revisions

Two models were used to predict the outcome

RF

Results confustion matrix : [[599 592] [687 689]] classification report :
precision recall f1-score support

       0       0.47      0.50      0.48      1191
       1       0.54      0.50      0.52      1376

accuracy                           0.50      2567

macro avg 0.50 0.50 0.50 2567 weighted avg 0.50 0.50 0.50 2567

Accuracy score is: 0.5017530190884301

KNN

Results confustion matrix : [[599 592] [687 689]] calssification report :
precision recall f1-score support

       0       0.47      0.50      0.48      1191
       1       0.54      0.50      0.52      1376

accuracy                           0.50      2567

macro avg 0.50 0.50 0.50 2567 weighted avg 0.50 0.50 0.50 2567

Accuracy score is: 0.5017530190884301

Clone this wiki locally