aimnova.
DashboardMy LearningPaper MasteryStudy Plan

Aimnova site navigation

Stay in the loop

Get the latest study resources and updates

New features, study tips and exam insights — straight to your inbox.

IB Diploma

  • IB Past Papers
  • IB Study Notes
  • IB Question Bank
  • IB Mock Exams
  • IB Revision

IB Subjects

  • IB Math AA
  • IB Math AI
  • IB Economics
  • IB Business Management
  • IB Physics
  • IB Biology
  • View all IB subjects→

IB Past Papers

  • IB Math AA HL Past Papers
  • IB Math AA SL Past Papers
  • IB Math AI HL Past Papers
  • IB Math AI SL Past Papers
  • IB Economics HL Past Papers
  • IB Economics SL Past Papers
  • IB ESS Past Papers
  • View all past papers→

Study Resources

  • Study Notes
  • Question Bank
  • Mock Exams
  • Flashcards
  • Revision Guide
  • Exam Skills
  • Command Terms
  • Grade Calculator
  • Exam Timetable 2026

Aimnova

  • Features
  • Pricing
  • For Schools
  • For Parents
  • About Us
  • Blog
  • Contact
aimnova.

AI-powered study platform for smarter revision, past-paper analysis and examiner-style feedback.

TermsPrivacyCookies·© 2026 Aimnova. All rights reserved.8afc4e3

Aimnova is not affiliated with or endorsed by the International Baccalaureate Organization (IB).

NotesComputer Science HLTopic 4.3Hyperparameter tuning
Back to Computer Science HL Topics
4.3.34 min read

Hyperparameter tuning (Computer Science HL)

IB Computer Science • Unit 4

Smart study tools

Turn reading into results

Move beyond passive notes. Answer real exam questions, get AI feedback, and build the skills that earn top marks.

Get Started Free

Contents

  • Settings the model does not learn
  • The ones to know
  • How tuning is done — and the honest trap
  • Exam-style question
The big idea: A parameter is learned from the data during training. A hyperparameter is a setting chosen before training, which controls how the learning happens.

The model cannot learn its own hyperparameters, because they decide what learning even means.
ParameterHyperparameter
Set byTrainingYou, in advance
ExamplesWeights, the gradient of a lineLearning rate, tree depth, k in k-NN
Changes during training?ConstantlyNo — fixed for the run
Found byMinimising error on the dataSearching and comparing results

Free preview

This is the free notes preview

You're reading the free notes. Aimnova Pro unlocks the full study experience — and you can try it with your first topic free to keep:

  • FlashcardsLock in vocabulary and key terms with spaced repetition.
  • Practice questionsAnswer exam-style questions and get instant AI marking.
  • Mock exams & past-paper vaultSit full mocks and see exactly how examiners award marks.
  • Personalised study planA daily plan built around your exam date and weak areas.
Start Studying Free Full access to Aimnova Pro · cancel anytime

What each controls

  • Learning rate — how big a step each update takes. Too high overshoots the minimum; too low never arrives
  • Number of epochs — how many passes over the data. Too few underfits; too many overfits
  • Tree depth — how many questions a decision tree may ask. Deeper fits more, including noise
  • k in k-NN — how many neighbours vote. Small k is sensitive to noise; large k blurs the boundaries
  • Batch size — how many examples per update. Affects both speed and stability
Too high and too low both fail, differently: It is rarely "bigger is better". A learning rate that is too high bounces past the minimum and never settles; too low and training is still creeping towards it when time runs out.

An answer that names a failure at both ends shows the parameter is understood.

Memorize terms 3x faster

Smart flashcards show you cards right before you forget them. Perfect for definitions and key concepts.

Try Flashcards FreeYour first topic is free to keep • No credit card required

Grid search

  • Try every combination from a list per hyperparameter
  • Thorough, and exponentially expensive
  • 3 settings × 4 hyperparameters is 81 training runs

Random search

  • Sample combinations at random within ranges
  • Usually finds something good far sooner
  • Because only a few hyperparameters actually matter much

Cross-validation

  • Split into k folds, train on k−1, test on the held-out one, rotate
  • Every record is used for testing exactly once
  • Far more reliable than one arbitrary split
Three sets, not two: Tuning against the test set leaks it: you end up choosing settings that suit that particular data, and the reported score is optimistic.

Training to learn parameters · validation to choose hyperparameters · test, used once, to report. Keeping the test set untouched is what makes the final number honest.

How this is tested — you must distinguish a hyperparameter from a parameter, and explain why tuning needs its own data split. It comes up two ways:

Paper 1 Section A

  • Explain the role of hyperparameter tuning, 3-4 marks
  • Identify a hyperparameter from a list
  • State the effect of a learning rate that is too high

Paper 1 Section B — case study

  • Explain why a test set must not be used for tuning
  • Justify cross-validation over a single split
The classic trap: Calling a learned weight a hyperparameter. The test is simple: was it chosen before training started? If the model worked it out, it is a parameter.

Where the validation curve bottoms out, and why a third set exists.

Interactive diagram

Explore the labelled diagram, charts and maps for this topic in full study mode.

Claim your free topic
IB-style questionExplain[5 marks]

A team tunes a model by trying settings and keeping whichever scores best on the test set, reporting 94%. Explain what is wrong and what they should have done.

Model answer plan

See the mark-by-mark plan — for / against / judgement, with marking guidance — in study mode.

Claim your free topic

IB Exam Questions on Hyperparameter tuning

Practice with IB-style questions filtered to Topic 4.3.3. Get instant AI feedback on every answer.

Practice Topic 4.3.3 QuestionsBrowse All Computer Science HL Topics

How Hyperparameter tuning Appears in IB Exams

Examiners use specific command terms when asking about this topic. Here's what to expect:

Define

Give the precise meaning of key terms related to Hyperparameter tuning.

AO1
Describe

Give a detailed account of processes or features in Hyperparameter tuning.

AO2
Explain

Give reasons WHY — cause and effect within Hyperparameter tuning.

AO3
Evaluate

Weigh strengths AND limitations of approaches in Hyperparameter tuning.

AO3
Discuss

Present arguments FOR and AGAINST with a balanced conclusion.

AO3

See the full IB Command Terms guide →

Related Computer Science HL Topics

Continue learning with these related topics from the same unit:

4.1.1Types of machine learning
4.1.2Hardware for machine learning
4.2.1Data cleaning
4.2.2Feature selection
View all Computer Science HL topics

Improve your exam technique

Command terms, paper structure, and mark-scheme tips for Computer Science HL

Previous
4.3.2Classification
Next
Clustering4.3.4

1 questions to test your understanding

Reading is just the start. Students who tested themselves scored 82% on average — try IB-style questions with AI feedback.

Start FreeView All Computer Science HL Topics