Courseiva

AI-900 Practice Question: Describe fundamental principles of machine learning on Azure

What is the F1 score in machine learning evaluation?

⚠ Common exam trap

Many exam-takers confuse the F1 score with accuracy (Option C) because both are single-number metrics, but the F1 score specifically addresses the trade-off between precision and recall, not just overall correctness.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The harmonic mean of precision and recall that balances both metrics

The F1 score is defined as the harmonic mean of precision and recall, calculated as 2 * (precision * recall) / (precision + recall). This metric provides a single score that balances both false positives and false negatives, making it especially useful when classes are imbalanced. In Azure Machine Learning, the F1 score is a standard evaluation metric for classification models, reported in automated ML runs and designer modules.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The first evaluation metric calculated before training a model

    Why it's wrong here

    No evaluation metric can be computed before training because there are no model predictions to score; F1 is calculated only after training, typically on a held-out test set. This option describes a nonexistent workflow—metrics such as training loss may be monitored during training, but F1 is never the 'first' metric computed beforehand. The premise itself is invalid for any evaluation metric, including F1.

  • The harmonic mean of precision and recall that balances both metrics

    Why this is correct

    F1 is the harmonic mean of precision and recall, defined mathematically as F1 = 2 * (precision * recall) / (precision + recall). The harmonic mean is severe when precision and recall are unbalanced: a model with high precision and low recall receives a low F1 because both false positives and false negatives are penalized through the combination. This makes F1 a balanced measure of a model's reliability in detecting the positive class, particularly for imbalanced datasets.

  • The proportion of predictions correct on the test set

    Why it's wrong here

    The proportion of correct predictions on the test set is accuracy, calculated as (true positives + true negatives) divided by the total number of predictions. F1, by contrast, ignores true negatives entirely and instead combines precision and recall into a single score, making it far more informative when the classes are imbalanced. On a rare-event dataset, accuracy can be very high while F1 is very low, so the two are not interchangeable.

  • A measure of how fast the model produces predictions

    Why it's wrong here

    Prediction speed is measured by inference latency or throughput, typically expressed in milliseconds per prediction or predictions per second. F1 is purely a statistical quality metric derived from the confusion matrix: it is the harmonic mean of precision and recall, and it conveys nothing about how quickly a model returns a result. Confusing these conflates operational performance (speed) with predictive performance (correctness).

About these practice questions

One of 985 original AI-900 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AI-900 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-900 exam.