Interactive tutorial

How Models Learn: Training, Validation, and Test Data

Learn how a model improves from labeled examples and why training, validation, and test data have different roles. Using a simple email classifier, you will identify possible overfitting, spot data leakage, calculate test accuracy, and explain what an evaluation result does—and does not—show. No coding is required.

  • Level: Beginner
  • Duration: approx. 23 min
  • 8 steps
How Models Learn: Training, Validation, and Test Data

What you will go through

  1. Step 1 of 8 2 min Meet the Data: Features, Labels, and Predictions Learn to distinguish input features, known labels, and model predictions in a supervised email-classification example.
  2. Step 2 of 8 3 min Follow the Learning Loop Follow how an email classifier uses training examples to make predictions, measure training loss, and update learned parameters.
  3. Step 3 of 8 3 min Give Each Data Split a Different Job Assign distinct roles to training, validation, and test data so final evaluation remains separate from model development.
  4. Step 4 of 8 3 min Recognize Underfitting and Overfitting Learn to recognize possible underfitting, useful generalization, and overfitting by comparing training and validation results.
  5. Step 5 of 8 3 min Keep Hidden Answers Out of the Workflow Protect the email classifier from hidden information that can inflate evaluation results.
  6. Step 6 of 8 3 min Measure Performance on the Test Data Calculate Model B's final test accuracy and communicate what its two incorrect predictions mean.
  7. Step 7 of 8 3 min Understand What a Test Score Cannot Promise Qualify an accuracy result by considering sample size, class imbalance, error types, similarity to future data, and independent evaluation.
  8. Step 8 of 8 4 min Apply the Complete Workflow Apply the full model-development workflow and make a careful, evidence-based performance claim.

Video Courses

Courses related to this topic

See all video courses

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate