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 4 of 4

Overfitting and validation

Watch, read the card, then practise. Overfitting and underfitting · Cross-validation · Regularisation

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
  • Overfitting and underfitting

    Overfitting is memorising the training data; underfitting is not learning enough from it.

    Remember: Compare training and test scores. A big gap means overfitting.

  • Cross-validation

    Cross-validation tests a model several times on different slices of the data, for a fairer score.

    Remember: More reliable than one split, especially with small data.

  • Regularisation

    Regularisation adds a penalty for large weights, which keeps a model simpler and stops overfitting.

    Remember: Too much penalty underfits; too little overfits. Tune it.

Try the example in Code Lab

scores = [0.82, 0.85, 0.80, 0.84, 0.79]
print(round(sum(scores) / len(scores), 2))
← Classification basics

In this lesson

  • Overfitting and underfitting
  • Cross-validation
  • Regularisation

Practise this topic

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

Practise 5 questions