Click or drag to resize

SVM Class

http://www.emgu.com
Support Vector Machine
Inheritance Hierarchy

Namespace:  Emgu.CV.ML
Assembly:  Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntax
public class SVM : UnmanagedObject, IStatModel, IAlgorithm

The SVM type exposes the following members.

Constructors
  NameDescription
Public methodSVM
Create a support Vector Machine
Top
Properties
  NameDescription
Public propertyC
Parameter C of a SVM optimization problem
Public propertyCoef0
Parameter coef0 of a kernel function
Public propertyDegree
Parameter degree of a kernel function
Public propertyGamma
Parameter gamma of a kernel function
Public propertyKernelType
Type of a SVM kernel
Public propertyNu
Parameter nu of a SVM optimization problem
Public propertyP
Parameter epsilon of a SVM optimization problem
Public propertyPtr
Pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Public propertyTermCriteria
Termination criteria of the iterative SVM training procedure which solves a partial case of constrained quadratic optimization problem
Public propertyType
Type of a SVM formulation
Top
Methods
  NameDescription
Public methodDispose
The dispose function that implements IDisposable interface
(Inherited from DisposableObject.)
Protected methodDisposeObject
Release all the memory associated with the SVM
(Overrides DisposableObjectDisposeObject.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize
Destructor
(Inherited from DisposableObject.)
Public methodStatic memberGetDefaultGrid
Get the default parameter grid for the specific SVM type
Public methodGetHashCode (Inherited from Object.)
Public methodGetSupportVectors
Retrieves all the support vectors.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodReleaseManagedResources
Release the managed resources. This function will be called during the disposal of the current object. override ride this function if you need to call the Dispose() function on any managed IDisposable object created by the current object
(Inherited from DisposableObject.)
Public methodSetKernel
Initialize with one of predefined kernels
Public methodToString (Inherited from Object.)
Public methodTrainAuto(TrainData, Int32)
The method trains the SVM model automatically by choosing the optimal parameters C, gamma, p, nu, coef0, degree from CvSVMParams. By the optimality one mean that the cross-validation estimate of the test set error is minimal.
Public methodTrainAuto(TrainData, Int32, MCvParamGrid, MCvParamGrid, MCvParamGrid, MCvParamGrid, MCvParamGrid, MCvParamGrid, Boolean)
The method trains the SVM model automatically by choosing the optimal parameters C, gamma, p, nu, coef0, degree from CvSVMParams. By the optimality one mean that the cross-validation estimate of the test set error is minimal.
Top
Fields
  NameDescription
Protected field_ptr
A pointer to the unmanaged object
(Inherited from UnmanagedObject.)
Top
Extension Methods
  NameDescription
Public Extension MethodClear
Clear the algorithm
(Defined by AlgorithmExtensions.)
Public Extension MethodGetDefaultName
Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
(Defined by AlgorithmExtensions.)
Public Extension MethodIsEmpty
Returns true if the Algorithm is empty. e.g. in the very beginning or after unsuccessful read.
(Defined by AlgorithmExtensions.)
Public Extension MethodLoad
Loads algorithm from the file
(Defined by AlgorithmExtensions.)
Public Extension MethodLoadFromString
Loads algorithm from a String
(Defined by AlgorithmExtensions.)
Public Extension MethodPredict
Predicts response(s) for the provided sample(s)
(Defined by StatModelExtensions.)
Public Extension MethodRead
Reads algorithm parameters from a file storage.
(Defined by AlgorithmExtensions.)
Public Extension MethodSave
Save the algorithm to file
(Defined by AlgorithmExtensions.)
Public Extension MethodSaveToString
Save the algorithm to a string
(Defined by AlgorithmExtensions.)
Public Extension MethodTrain(TrainData, Int32)Overloaded.
Trains the statistical model.
(Defined by StatModelExtensions.)
Public Extension MethodTrain(IInputArray, DataLayoutType, IInputArray)Overloaded.
Trains the statistical model.
(Defined by StatModelExtensions.)
Public Extension MethodWrite(FileStorage)Overloaded.
Stores algorithm parameters in a file storage
(Defined by AlgorithmExtensions.)
Public Extension MethodWrite(FileStorage, String)Overloaded.
Stores algorithm parameters in a file storage
(Defined by AlgorithmExtensions.)
Top
See Also