What is the F1 Score?

The F1 score is a performance metric for classification and is calculated as the harmonic mean of precision and recall:

F1 Score Formula

The F1 score is commonly used to measure performance of binary classification, but extensions to multi-class classifications exist.


Why is the F1 Score Important?

The F1 score is a popular performance measure for classification and often preferred over, for example, accuracy when data is unbalanced, such as when the quantity of examples belonging to one class significantly outnumbers those found in the other class.


How C3.ai Helps Organizations with the F1 Score

F1 score can readily be used as a performance metric by setting the scoring metric of a C3 MLPipe to MLF1ScoreMetric.