One-class svm
A one-class support vector machine is a model that learns a region characterizing a class of observations and identifies observations outside that region as unusual.
Outlier Detection in Python
OneClassSVM is a scikit-learn estimator that learns a boundary around training data to identify observations outside the learned region.
- How it is used
- Models a usually normal training class to flag subsequent observations outside its learned boundary as candidate novelties.
- How deep it goes
- Explains the boundary intuitively and demonstrates fitting and scoring, but does not derive the SVM optimization.
- Examples
- Uses two synthetic clusters with a plotted boundary and a KDD Cup network-traffic example with separate training and test data.
- What you can do after
- Apply it via scikit-learn’s `OneClassSVM` to fit clean training data, score separate observations, and examine boundary errors.
Read how Outlier Detection in Python explains one-class svm →
Timeless Algorithms, The Foundational Ideas
A one-class support vector machine estimates a region containing most training observations and identifies observations outside it as unusual.
- How it is used
- Positions one-class SVM as an anomaly-detection method for data with mainly normal examples and scarce labeled failures.
- How deep it goes
- Describes feature-space separation and permitted violations, but does not develop the optimization or implementation procedure.
- Examples
- Situates one-class SVMs in detecting rare failures, defects, or intrusions when normal observations are available.
- What you can do after
- Apply it to flag observations outside a learned region when normal examples are available and failure examples are rare.
Read how Timeless Algorithms, The Foundational Ideas explains one-class svm →
What to know first
- support vector machineA support vector machine is a supervised-learning model that uses support vectors to define a maximum-margin decision boundary or regression function, with kernels enabling nonlinear relationships.
Related concepts
- one-class methodkind of · A one-class method is an approach trained on data from a single class to characterize that class and identify observations that do not fit it.
- support vector machinekind of · A support vector machine is a supervised-learning model that uses support vectors to define a maximum-margin decision boundary or regression function, with kernels enabling nonlinear relationships.
- anomaly detectionaddresses · Anomaly detection is the identification of observations, events, or behaviors that substantially deviate from expected patterns or a normal baseline.
- area under the ROC curveproduces · Area under the ROC curve is a classification metric that measures how well a scoring model ranks positive examples above negative examples across decision thresholds.
- parameterconfigures · A parameter is a value or named input that specifies or influences the behavior, computation, or output of a function, model, or system.
Questions about one-class svm
What is one-class svm?
A one-class support vector machine is a model that learns a region characterizing a class of observations and identifies observations outside that region as unusual.
Which Manning books explain one-class svm?
Outlier Detection in Python and Timeless Algorithms, The Foundational Ideas.
What should I know before learning one-class svm?
Manning books that teach one-class svm usually introduce support vector machine first.
What is the difference between one-class svm and DeepSVDD?
A one-class support vector machine is a model that learns a region characterizing a class of observations and identifies observations outside that region as unusual. A deep one-class outlier-detection model that learns a neural representation in which training observations fit tightly within a hypersphere.
What is one-class svm a kind of?
One-class svm is a kind of one-class method. A one-class method is an approach trained on data from a single class to characterize that class and identify observations that do not fit it.
What is one-class svm also called?
One-class svm is also called one-class support vector machine.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

