This class contains the various parameters which can affect the way in which an SVM is learned. Unless you know what you are doing, chances are you are best off using the default values.
Parameter
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | Default Constructor. Gives good default values to all parameters. |
| Clone | 1 | Creates a memberwise clone of this parameters object. |
| ToString | 1 | |
| Equals | 1 | |
| GetHashCode | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| svmType | 1 | Type of SVM (default C-SVC) |
| kernelType | 1 | Type of kernel function (default Polynomial) |
| degree | 1 | Degree in kernel function (default 3). |
| gamma | 1 | Gamma in kernel function (default 1/k) |
| coefficient0 | 1 | Zeroeth coefficient in kernel function (default 0) |
| cacheSize | 1 | Cache memory size in MB (default 100) |
| EPS | 1 | Tolerance of termination criterion (default 0.001) |
| c | 1 | The parameter C of C-SVC, epsilon-SVR, and nu-SVR (default 1) |
| weights | 1 | ColorClass.name |
| nu | 1 | The parameter nu of nu-SVC, one-class SVM, and nu-SVR (default 0.5) |
| P | 1 | The epsilon in loss function of epsilon-SVR (default 0.1) |
| shrinking | 1 | Whether to use the shrinking heuristics, (default True) |
| probability | 1 | Whether to train an SVC or SVR model for probability estimates, (default False) |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| m_Weights | 1 | Contains custom weights for class labels. |
05 Members
Default Constructor. Gives good default values to all parameters.
Creates a memberwise clone of this parameters object.
The clone (as type Parameter)
Type of SVM (default C-SVC)
Type of kernel function (default Polynomial)
Degree in kernel function (default 3).
Gamma in kernel function (default 1/k)
这个参数比较重要,千万不可以设置为零,否则将无法进行数据分类
Zeroeth coefficient in kernel function (default 0)
Cache memory size in MB (default 100)
Tolerance of termination criterion (default 0.001)
The parameter C of C-SVC, epsilon-SVR, and nu-SVR (default 1)
ColorClass.name
The parameter nu of nu-SVC, one-class SVM, and nu-SVR (default 0.5)
The epsilon in loss function of epsilon-SVR (default 0.1)
Whether to use the shrinking heuristics, (default True)
Whether to train an SVC or SVR model for probability estimates, (default False)
Contains custom weights for class labels. Default weight value is 1.
Object)