The F1 score is calculated by taking the harmonic mean of precision and recall. Additional weights are applied to the more generic score, favoring one of precision or recall over the other. An F-score can have a maximum value of 1.0, which indicates perfect precision and recall, and a minimum value of 0 if neither precision nor recall are zero.