Evals Flashcards
accuracy
ratio of correct predictions / total predictions
precision
ratio of true positives to sum of true positives and false positives
recall
ratio of true positives to sum of true positives and false negatives (and remember a false negative is the other type of positive, so this metric is essential ratio of true positives / actual positives
other names for recall
sensitivity, or true positive rate
F1 score
the harmonic mean of precision and recall
how to calculate harmonic mean
reciprocal of the arithmetic mean of the reciprocals
when is harmonic mean useful?
it is the appropriate measure of central tendency when dealing with rates
In the context an example with speeds (e.g. traveling 1 min at 20mph, 1 min at 30mph, 1 min at 60mph, the harmonic mean gives the average speed over the entire trip, assuming constant time intervals)