Cross-Validation: OCSVM's Best Gamma & Nu Tuning

Employing k-fold cross-validation is crucial for systematically determining the optimal `gamma` and `nu` hyperparameters, ensuring the OCSVM model finds a robust decision boundary and avoids overfitting to training noise.

The top 3

  1. Optimal Gamma: Balancing OCSVM Boundary Flexibility: Cross-validation is vital for tuning OCSVM's `gamma` parameter, which dictates the decision boundary's flexibility; a low `gamma` creates smooth, generalized boundaries, while a high `gamma` risks overfitting to noise by creating complex, tight boundaries.
  2. Top Cross-Validation Metrics for Imbalanced Anomaly Data: For OCSVM hyperparameter tuning on imbalanced anomaly detection datasets, metrics like Precision-Recall Area Under Curve (PR-AUC) or F1-score are often superior to accuracy, as they provide a more accurate evaluation of the model's ability to identify the rare anomaly class.
  3. Nu's Influence: Controlling OCSVM Outlier Proportion: The 'nu' parameter in OCSVM, tuned via cross-validation, directly controls the expected fraction of outliers and support vectors. An optimally chosen 'nu' ensures the model effectively captures the normal data distribution while appropriately flagging a specified proportion of anomalies.

Sources

Open the full topic