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

Decision trees

A decision tree predicts by asking yes/no questions about the features until it reaches an answer (a leaf).

  • Each split picks the question that best separates the classes (lowest Gini impurity or entropy).
  • Gini = 1 − sum of squared class shares; 0 means the node is pure.
  • Trees don't need feature scaling and are easy to explain.
shares = [0.8, 0.2]          # 8 'yes', 2 'no'
print(round(1 - sum(s * s for s in shares), 2))

Prints

0.32

Remember: Limit max_depth, or the tree will memorise the training data.

Common mistake: Letting a tree grow fully, then wondering why the test score is much lower.

Log inSign up