aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 1. Introduction to Machine Learning
Lesson 9 of 13 7 min · 142 words

Parameters vs. hyperparameters

Parameters are learned during training; hyperparameters are chosen before it.

Parameters are the numbers the learning algorithm adjusts during training: the weights and bias of a linear model, or the millions of weights in a neural network. You never set them by hand — the optimiser finds them by minimising the loss.

Hyperparameters are choices made *before* training that control how learning happens: the learning rate , the number of layers, the regularisation strength , the in k-nearest neighbours, the maximum depth of a tree, the batch size, the number of epochs.

Hyperparameters are tuned by trying several values and comparing performance on a validation set (or with cross-validation) — never on the test set. Common strategies are grid search, random search and Bayesian optimisation.

Formula to remember

SIR model

Slides

Flow between Susceptible, Infected and Recovered compartments.

transmission rate
recovery rate
population size
Quick check · +5 XP

Which of these is a hyperparameter?

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser