Contains classes to work with the support vector machine classifier.
More...
|
| Prediction |
| Contains classes to make predictions based on the SVM model.
|
|
| Quality Metrics |
| Contains classes to check the quality of the model trained with the SVM algorithm.
|
|
| Training |
| Contains classes to train the SVM model.
|
|
Get built model
- Returns
- Model pointer
services::Status getStatus |
( |
| ) |
|
|
inline |
Get status of model building
- Returns
- Status
ModelBuilder |
( |
size_t |
nFeatures, |
|
|
size_t |
nSupportVectors |
|
) |
| |
|
inline |
Constructs the SVM model builder
- Template Parameters
-
modelFPType | Data type to store SVM model data, double or float |
- Parameters
-
[in] | nFeatures | Number of features in training data |
[in] | nSupportVectors | Number of support vectors in model |
void setBias |
( |
modelFPType |
bias | ) |
|
|
inline |
Method to set bias term to model
- Parameters
-
[in] | bias | The value to be set |
void setClassificationCoefficients |
( |
RandomIterator |
first, |
|
|
RandomIterator |
last |
|
) |
| |
|
inline |
Method to set classification coefficients to model via random access iterator
- Template Parameters
-
RandomIterator | Random access iterator type for access to values of classification coefficients |
- Parameters
-
[in] | first | Iterator which point to first element of classification coefficients |
[in] | last | Iterator which point to last element of classification coefficients |
void setSupportIndices |
( |
RandomIterator |
first, |
|
|
RandomIterator |
last |
|
) |
| |
|
inline |
Method to set support indices to model via random access iterator
- Template Parameters
-
RandomIterator | Random access iterator type for access to values of suport indices |
- Parameters
-
[in] | first | Iterator which point to first element of support indices |
[in] | last | Iterator which point to last element of support indices |
void setSupportVectors |
( |
RandomIterator |
first, |
|
|
RandomIterator |
last |
|
) |
| |
|
inline |
Method to set support vectors to model via random access iterator
- Template Parameters
-
RandomIterator | Random access iterator type for access to values of suport vectors |
- Parameters
-
[in] | first | Iterator which point to first element of support vectors |
[in] | last | Iterator which point to last element of support vectors |