OCSVM's Top 2 Parameters for Anomaly Sensitivity

The `nu` parameter in OCSVM is critical, controlling both the upper bound on the fraction of detected anomalies in training data and the lower bound on support vectors. Alongside this, `gamma` (for RBF kernel) dictates the influence range of individual training examples, significantly shaping the decision boundary's complexity and the model's sensitivity to novelties.

The top 3

  1. Nu Parameter: The Anomaly Fraction Dial: The `nu` parameter (range 0-1) directly controls OCSVM's anomaly sensitivity, acting as an upper bound on training errors and a lower bound on support vectors. Lower `nu` values (e.g., 0.01-0.05 for financial fraud) yield stricter boundaries, while higher values (e.g., 0.10-0.20 for network security) create more flexible detection.
  2. Gamma's Influence on Decision Boundary Shape: For RBF kernels, `gamma` dictates the influence of individual training examples, critically shaping OCSVM's anomaly detection boundary. Small `gamma` creates smoother, more generalized boundaries (risk of underfitting), whereas large `gamma` forms tighter, more complex boundaries (risk of overfitting).
  3. Kernel Choice: Foundation for Anomaly Boundary: The selection of the kernel function (e.g., Radial Basis Function, Linear, Polynomial, Sigmoid) is fundamental, as it dictates how OCSVM transforms data into a higher-dimensional space to define the decision boundary for anomaly detection.

Sources

Open the full topic