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

Loss functions

The loss measures how wrong the predictions are. Training tries to make it smaller.

  • Regression: mean squared error (MSE) or mean absolute error (MAE).
  • Classification: cross-entropy, −log(probability of the right class).
  • Confident wrong answers get a large cross-entropy loss.
import math
print(round(-math.log(0.9), 2), round(-math.log(0.1), 2))

Prints

0.11 2.3

Remember: Number → MSE. Category → cross-entropy.

Common mistake: Using accuracy as the loss. It can't be trained with gradients.

Log inSign up