SkyAICampus
HomePracticeLearnCode LabFocus
SkyAICampus
PrivacyTermssupport@skyaicampus.com© 2026 SkyAI Campus
Log inSign up

Learn

HomePracticeConcept cardsCode LabSky Tutor

Review

Revise todayMistake notebookProgress

Focus

Campus ForestFocus roomsSquads

Questions or feedback?
support@skyaicampus.com

  1. 1What machine learning is
  2. 2Regression basics
  3. 3Classification basics
  4. 4Overfitting and validation
← Machine learning basics

Lesson 3 of 4

Classification basics

Watch, read the card, then practise. Classification models · Accuracy and the confusion matrix · Precision and recall

Video coming soon

The video for this lesson is being recorded.

Meanwhile, the notes below and the 60-second cards cover the same ideas.

Practise this topic
  • Classification models

    A classifier predicts a category, often by first giving a probability and then applying a threshold.

    Remember: Probability first, then a threshold decides the class.

  • Accuracy and the confusion matrix

    A confusion matrix counts the four kinds of right and wrong answers.

    Remember: Accuracy can mislead when one class is rare.

  • Precision and recall

    Precision asks 'of my alarms, how many were real?' Recall asks 'of the real ones, how many did I catch?'

    Remember: Missing a disease is costly → care about recall. Annoying false alarms → precision.

Try the example in Code Lab

probs = [0.9, 0.4, 0.65, 0.2]
print(["spam" if p >= 0.5 else "not spam" for p in probs])
← Regression basicsNext: Overfitting and validation →

In this lesson

  • Classification models
  • Accuracy and the confusion matrix
  • Precision and recall

Practise this topic

5 questions at your level. The best way to make it stick.

Practise 5 questions