training deep leaning models categorizing non-allergen-free product as an allergen-free product is significantly more as compared to categorizing an allergen-free product as non-allergen-free product accuracy does not capture this and hence would be poor choice in this case an alternative set of metrics is precision and recallwhich measure the fraction of predictions in the predicted class that were correctly recoveredand the fraction of the predicted class that were reportedrespectively (see figure - togetherprecision and recall are robust with respect to class imbalance figure - precision and recall