Fix input for caret::confusionMatrix
Sensitivity, Specificity, ... are nor correctly computed.
See examples in ?caret::confusionMatrix
Output with SMOTE:
print(conf)
Confusion Matrix and Statistics
observed
predicted 0 1
0 2238 15
1 81 48
Accuracy : 0.9597
95% CI : (0.951, 0.9672)
No Information Rate : 0.9736
P-Value [Acc > NIR] : 1
Kappa : 0.4816
Mcnemar's Test P-Value : 3.266e-11
Sensitivity : 0.76190
Specificity : 0.96507
Pos Pred Value : 0.37209
Neg Pred Value : 0.99334
Prevalence : 0.02645
Detection Rate : 0.02015
Detection Prevalence : 0.05416
Balanced Accuracy : 0.86349
'Positive' Class : 1
Change-Id: I7009c6b3a1e81f4f912ce13cbbde825abc490ee7
1 file changed
tree: 5afae9e0cb514c5f9879645a380c13fbfffb21f8
- data/
- R/