SkyAICampus
HomePracticeLearnCode LabFocus

Learn

HomePracticeConcept cardsCode LabSky Tutor

Review

Revise todayMistake notebookProgress

Focus

Campus ForestFocus roomsSquads

Questions or feedback?
support@skyaicampus.com

Keyboard shortcuts

  • Choose an answer1–4 or A–D
  • Check, then next questionEnter
  • Next hintH
  • Search cardsCtrl K

How this quiz adapts

3 fast right answers in a row: the next questions get harder. 2 wrong in a row: a little easier.

Hints and guesses still count, just a little less, so use them whenever you're stuck.

Sky Tutor

Stuck on an idea? Ask in your own words, or by voice.

Ask Sky Tutor
SkyAICampus
PrivacyTermssupport@skyaicampus.com© 2026 SkyAI Campus

New skill. A one-minute read first, then the question.

60-second card

Classification models

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

  • Logistic regression gives a probability between 0 and 1.
  • With a 0.5 threshold, 0.7 → 'yes', 0.3 → 'no'.
  • Other classifiers: decision trees, k-nearest neighbours, random forests.
probs = [0.9, 0.4, 0.65, 0.2]
print(["spam" if p >= 0.5 else "not spam" for p in probs])

Prints

['spam', 'not spam', 'spam', 'not spam']

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

Common mistake: Assuming 0.5 is always the right threshold. It depends on the cost of each mistake.

Log inSign up