Specificity
The percent/proportion of 0s correctly classified Measures a model's ability to predict a negative outcome
conf_mat[2,2]/sum(conf_mat[2,]) Precision
The percent/proportion of predicted 1s that are actually 1s The accuracy of a predicted positive outcome
conf_mat[1,1]/sum(conf_mat[,1]) Sensitivity/Recall
The percent/proportion of 1s correctly classified Measure the strength of the model to predict a positive outcome
conf_mat[1,1]/sum(conf_mat[1,])