Optimal Gamma Search Space: Logarithmic Scale Best Practice
When performing cross-validation for OCSVM's gamma, best practice involves exploring values on a logarithmic scale (e.g., 0.001, 0.01, 0.1, 1, 10, 100). This strategy efficiently covers a wide range of potential decision boundary shapes, which is crucial when the optimal gamma value is unknown.
The top 3
- Why Gamma's Impact Demands Logarithmic Search: The gamma parameter in One-Class SVMs, which controls the influence of individual training examples and the shape of the decision boundary, exhibits a non-linear effect on model performance. Searching on a logarithmic scale efficiently covers orders of magnitude, preventing wasted computational resources on linearly spaced values that might miss optimal performance regions where gamma's impact changes drastically.
- Top Recommended Logarithmic Gamma Ranges: For effective hyperparameter tuning, common practice dictates searching for gamma (and C) values across several orders of magnitude using a logarithmic scale, typically powers of 2 or 10. Examples include ranges like 10^-5 to 10^5 or 2^-15 to 2^15. A specific research example for One-Class SVM used `Gamma = [2^-40 to 2^-13]` with steps of 2.
- Logarithmic Search: The Efficiency Advantage Over Linear: Compared to a linear search, a logarithmic scale search for gamma significantly boosts efficiency by exploring a broad range of values more effectively. A linear search might disproportionately allocate resources to a narrow sub-range, especially if the optimal value is unknown or the parameter's influence is exponential. Logarithmic steps ensure a balanced exploration across the entire search space, making it a superior first step for hyperparameter tuning.
Sources
Open the full topic