What is the difference between a model's parameters and its hyperparameters?
Options
- Parameters are set by hand before training; hyperparameters are learned from the data
- There is no difference; the two words mean the same
- Parameters belong to regression models and hyperparameters to classification models
- Parameters are learned from the training data; hyperparameters are chosen before training starts (Correct option)
Answer
Parameters are learned from the training data; hyperparameters are chosen before training starts
Why
Parameters are the numbers the model learns while training, such as the weights of a linear model or the split values of a tree.
Hyperparameters are settings you choose before training, such as the learning rate, the maximum depth of a tree or the strength of regularization.
You find good hyperparameters by trying values and measuring on validation data, not by training them.
Remember
Parameters are learned; hyperparameters are chosen.