How to Measure F1 Score

Learn about F1 Score, including how to measure it, and leverage it in dashboards and visualizations with Metabase.

What is F1 Score?

An F1 score is a metric used in machine learning for classification models. To be more specific, an F1 score measures errors by calculating the harmonic mean of precision and recall. This score is meant to tell you accurate results for both imbalanced and balanced datasets using precision and recall calculations. F1 scores are on a scale of 0 to 1, 1 being the best possible score. Combining recall and precision to get your F1 score gives you the ability to see whether or not your model is balanced when capturing and predicting positive cases. Visualizing your F1 score can show you where you’re at with your classification models and machine learning.

Get Started
Graphs of F1 Score

How to calculate F1 Score

Your F1 score requires that you know your precision and recall numbers. You can figure those out by doing the following calculations for a given dataset: Precision: number of true positives / (number of true positives + number of false positives) Recall: number of true positives / (number of true positives + number of true negatives) Once you have these calculations, you can calculate your F1 score. Remember, the goal is to identify balance between these two calculations. You’ll calculate your F1 score like this: 2 x (precision x recall) / (precision + recall) = F1 score

Other KPIs to measure related to F1 Score

  • Commit to Deploy Time
  • Cost Performance Indicator
  • Flow Efficiency
  • Issue Resolution Time
  • Machine Learning Performance
  • Production Incidents
  • Queue Time
  • Regressions Open/Closed
  • Release Burndown

Why build a dashboard for F1 Score?

Sales per source graph

Everything in one place

Get everyone on the same page by collecting your most important metrics into a single view.

Sales per source graph

Share your perspective

Take your data wherever it needs to go by embedding it in your internal wikis, websites, and content.

eCommerce orders filter

Unlock exploration

Empower your team to measure their own progress and explore new paths to achieve their goals.

How to use Metabase to measure F1 Score

Get started

Step 1.
Skip the custom quote

That's right, no sales calls necessary—just sign up, and get running in under 5 minutes.

types of databases

Step 2.
Plugin your database

We connect to the most popular production databases and data warehouses.

dashboard example

Step 3.
Build your KPI dashboards

Invite your team and start building dashboards—no SQL required.

Get started with Metabase

Get started
  • Free, no-commitment trial
  • Easy for everyone—no SQL required
  • Up and running in 5 minutes