What does gamma control in an RBF-kernel SVM?
mediumAnswer
- The RBF kernel is . gamma is — the inverse of the kernel bandwidth.
- Small gamma → wide bell, each point influences a large region → smooth boundary, high bias.
- Large gamma → narrow bell, each point influences only near neighbours → wiggly boundary, high variance, overfits easily.
- Tune gamma jointly with C on a log-log grid.
- 'auto' = , 'scale' = in scikit-learn.
Check yourself — multiple choice
- gamma is the learning rate
- gamma controls RBF bandwidth — small boundary; large
- gamma is only used for linear kernels
- gamma is fixed and can't be tuned
: small = smooth, large = wiggly. Tune jointly with C.
#svm#kernels#hyperparameter-tuning
Practise Supervised Learning
215 interview questions in this topic.
Related questions
- Why do SVMs use kernels?
- How does the C parameter in an SVM affect the fit?
- How do you choose the regularization strength (lambda / alpha)?
- How do you choose k in k-Nearest Neighbours?
- What are the most impactful hyperparameters of a decision tree?
- Which Random Forest hyperparameters actually matter for tuning?