SVMBase<T>
Base Classes · AiDotNet.Classification.SVM
Base class for Support Vector Machine classifiers.
Inheritance: ClassifierBase<T> → ProbabilisticClassifierBase<T> → SVMBase<T>
Implements: IDecisionFunctionClassifier<T>, IGeneratedParameterRegistrar<T>
Known derived types: LinearSupportVectorClassifier<T>, NuSupportVectorClassifier<T>, SupportVectorClassifier<T>
For Beginners
SVMs are like finding the best possible line (or curve) to separate different groups. Unlike other methods that just find “a” line that works, SVMs find “the best” line by maximizing the gap (margin) between the line and the nearest points from each class.
Key SVM concepts:
- Margin: The gap between the decision boundary and the nearest training points
- Support Vectors: The training points closest to the decision boundary
- Kernel Trick: A way to handle non-linear boundaries without explicitly computing new features
How It Works
Support Vector Machines (SVMs) are powerful classifiers that find the optimal hyperplane separating classes with maximum margin. This base class provides common functionality for SVM implementations.
Properties
| Property | Summary |
|---|---|
Matrix<T> SupportVectors { get; } |
|
int NSupportVectors { get; } |
Methods
| Method | Summary |
|---|---|
IFullModel<T, Matrix<T>, Vector<T>> WithParameters(Vector<T> parameters) |
|
Matrix<T> DecisionFunction(Matrix<T> input) |
|
ModelMetadata<T> GetModelMetadata() |