What is the difference between a model parameter and a hyperparameter?
- Exam domain
- Foundations of Accelerated Data Science12% of the exam
- Difficulty
- Easy
- In this mock
- 6 questions on this domainPractise this domain
Why the exam asks this
Foundations of Accelerated Data Science (12% of the exam)
Objective in the exam guide: Model parameters, tuning, and overfitting vs. underfitting concepts
Model parameters and tuning concepts are named.
Why D is the answer
Parameters are learned from data; hyperparameters are set before training
Parameters, such as weights or split values, are learned during training. Hyperparameters, such as tree depth or learning rate, are set beforehand and tuned.
Remember: Parameters are learned; hyperparameters are chosen.
How it works
Parameters are learned; hyperparameters control learning and are tuned against validation data.
In detail
- Parameters: learned.
- Hyperparameters: chosen and tuned.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Hyperparameters are learned; parameters are set by handWrongMost tempting
That reverses them.
Why it tempts: The names are easy to swap.
B. Parameters only exist in deep learningWrong
Classic models have parameters too.
C. They are the same thing, and both are learned automatically from the training data during fittingWrong
They differ in how they are set.
D. Parameters are learned from data; hyperparameters are set before trainingRight
Parameters are learned; hyperparameters are chosen.
Use case
An illustrative scenario, not a real incident.
Illustrative: tuning max depth changes how many split parameters the model learns.
See it in different ways
mindmap
root(("Settings"))
n1["Parameters"]
n2["Weights"]
n3["Split points"]
n4["Hyperparameters"]
n5["Learning rate"]
n6["Max depth"]
n7["Number of trees"]How to read this chart
- The centre is "Settings".
- "Parameters" covers "Weights", "Split points".
- "Hyperparameters" covers "Learning rate", "Max depth", "Number of trees".
flowchart LR S0["Choose hyperparameters"] --> S1["Fit model"] --> S2["Learn parameters"] --> S3["Validate"] --> S4["Tune"]
How to read this chart
- Read it in order: Choose hyperparameters, then Fit model, then Learn parameters, then Validate, then Tune.