![]() |
LIBDSP Version 4.1.9
LIBDSP Software Library
|

Functions | |
| void | tpt_svm_polynomial_init_f32 (tpt_svm_polynomial_f32_t *aSVM, uint32_t nbOfSupportVectors, uint32_t vectorDimension, f32_t intercept, const f32_t *dualCoefficients, const f32_t *supportVectors, const int32_t *classes, int32_t degree, f32_t coef0, f32_t gamma) |
| SVM polynomial instance init function. | |
| void | tpt_svm_polynomial_predict_f32 (int32_t *aResult, const tpt_svm_polynomial_f32_t *aSVM, const f32_t *aInData) |
| SVM polynomial prediction. | |
Polynomial kernel SVM initialization and prediction helpers.
| void tpt_svm_polynomial_init_f32 | ( | tpt_svm_polynomial_f32_t * | aSVM, |
| uint32_t | nbOfSupportVectors, | ||
| uint32_t | vectorDimension, | ||
| f32_t | intercept, | ||
| const f32_t * | dualCoefficients, | ||
| const f32_t * | supportVectors, | ||
| const int32_t * | classes, | ||
| int32_t | degree, | ||
| f32_t | coef0, | ||
| f32_t | gamma ) |
SVM polynomial instance init function.
Classes are integer used as output of the function (instead of having -1, 1 as class values).
| [in] | aSVM | points to an instance of the polynomial SVM structure. |
| [in] | nbOfSupportVectors | Number of support vectors |
| [in] | vectorDimension | Dimension of vector space |
| [in] | intercept | Intercept |
| [in] | dualCoefficients | Array of dual coefficients |
| [in] | supportVectors | Array of support vectors |
| [in] | classes | Array of 2 classes ID |
| [in] | degree | Polynomial degree |
| [in] | coef0 | coeff0 (scikit-learn terminology) |
| [in] | gamma | gamma (scikit-learn terminology) |
| void tpt_svm_polynomial_predict_f32 | ( | int32_t * | aResult, |
| const tpt_svm_polynomial_f32_t * | aSVM, | ||
| const f32_t * | aInData ) |
SVM polynomial prediction.
| [out] | aResult | Decision value |
| [in] | aSVM | Pointer to an instance of the polynomial SVM structure. |
| [in] | aInData | Pointer to input vector |