One-Class SVM: Unsupervised Anomaly Detection via Support Vector Machines

One-Class SVM (OCSVM) is a variant of Support Vector Machine designed for anomaly detection in an unsupervised setting. Unlike traditional supervised SVMs that require both positive and negative examples, OCSVM learns a decision boundary using only data from a single class (typically the normal class). Its primary goal is to identify novel or a ...

Posted on Fri, 04 Sep 2026 16:50:59 +0000 by tex1820

Solving the Primal and Dual Problems of SVM Using CVX Toolbox

To solve the support vector machine (SVM) primal and dual problems using the CVX toolbox, we need to formulate and optimize the corresponding mathematical models. 1. Primal Problem of SVM (Hard Margin) Objective Function: [\min_{w,b} \frac{1}{2} |w|^2 ]Constraints: [y_i (w^T x_i + b) \geq 1 \quad \forall i ]``` % Generate linearly separable dat ...

Posted on Wed, 13 May 2026 18:50:15 +0000 by amarquis