Gamma Tuning: The Overfitting-Underfitting Trade-off
Selecting the optimal gamma for OCSVM involves a critical trade-off between underfitting and overfitting. A gamma value that is too low risks underfitting, causing the model to miss true anomalies, while a gamma that is too high risks overfitting, leading to false positives by flagging normal variations as anomalies. This necessitates careful hyperparameter tuning, often using techniques like grid search and cross-validation.
The top 3
- High Gamma's Overfitting Risk: A very high gamma value makes the OCSVM decision boundary overly sensitive to individual training points, often creating a 'spiky' boundary that overfits the normal data and incorrectly flags subtle variations as anomalies, increasing false positives.
- Low Gamma's Underfitting Pitfall: Conversely, an extremely low gamma value results in an overly smooth and generalized decision boundary, causing the OCSVM model to underfit the data and fail to detect true, novel anomalies, leading to a high rate of false negatives.
- Grid Search: Top Gamma Optimization Method: Grid Search is a widely used and effective technique for tuning gamma, systematically evaluating model performance across a predefined range of gamma values to identify the optimal parameter that balances overfitting and underfitting.
Sources
Open the full topic