Polynomial SVM
- RISCV_DSP_ATTRIBUTE void riscv_svm_polynomial_init_f16 (riscv_svm_polynomial_instance_f16 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float16_t intercept, const float16_t *dualCoefficients, const float16_t *supportVectors, const int32_t *classes, int32_t degree, float16_t coef0, float16_t gamma)
- RISCV_DSP_ATTRIBUTE void riscv_svm_polynomial_init_f32 (riscv_svm_polynomial_instance_f32 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float32_t intercept, const float32_t *dualCoefficients, const float32_t *supportVectors, const int32_t *classes, int32_t degree, float32_t coef0, float32_t gamma)
- RISCV_DSP_ATTRIBUTE void riscv_svm_polynomial_predict_f16 (const riscv_svm_polynomial_instance_f16 *S, const float16_t *in, int32_t *pResult)
- RISCV_DSP_ATTRIBUTE void riscv_svm_polynomial_predict_f32 (const riscv_svm_polynomial_instance_f32 *S, const float32_t *in, int32_t *pResult)
- group polysvm
Polynomial SVM classifier.
Functions
- RISCV_DSP_ATTRIBUTE void riscv_svm_polynomial_init_f16 (riscv_svm_polynomial_instance_f16 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float16_t intercept, const float16_t *dualCoefficients, const float16_t *supportVectors, const int32_t *classes, int32_t degree, float16_t coef0, float16_t gamma)
SVM polynomial instance init function.
Classes are integer used as output of the function (instead of having -1,1 as class values).
- Parameters
S – [in] points to an instance of the polynomial SVM structure.
nbOfSupportVectors – [in] Number of support vectors
vectorDimension – [in] Dimension of vector space
intercept – [in] Intercept
dualCoefficients – [in] Array of dual coefficients
supportVectors – [in] Array of support vectors
classes – [in] Array of 2 classes ID
degree – [in] Polynomial degree
coef0 – [in] coeff0 (scikit-learn terminology)
gamma – [in] gamma (scikit-learn terminology)
- RISCV_DSP_ATTRIBUTE void riscv_svm_polynomial_init_f32 (riscv_svm_polynomial_instance_f32 *S, uint32_t nbOfSupportVectors, uint32_t vectorDimension, float32_t intercept, const float32_t *dualCoefficients, const float32_t *supportVectors, const int32_t *classes, int32_t degree, float32_t coef0, float32_t gamma)
SVM polynomial instance init function.
Classes are integer used as output of the function (instead of having -1,1 as class values).
- Parameters
S – [in] points to an instance of the polynomial SVM structure.
nbOfSupportVectors – [in] Number of support vectors
vectorDimension – [in] Dimension of vector space
intercept – [in] Intercept
dualCoefficients – [in] Array of dual coefficients
supportVectors – [in] Array of support vectors
classes – [in] Array of 2 classes ID
degree – [in] Polynomial degree
coef0 – [in] coeff0 (scikit-learn terminology)
gamma – [in] gamma (scikit-learn terminology)
- RISCV_DSP_ATTRIBUTE void riscv_svm_polynomial_predict_f16 (const riscv_svm_polynomial_instance_f16 *S, const float16_t *in, int32_t *pResult)
SVM polynomial prediction.
- Parameters
S – [in] Pointer to an instance of the polynomial SVM structure.
in – [in] Pointer to input vector
pResult – [out] Decision value
- RISCV_DSP_ATTRIBUTE void riscv_svm_polynomial_predict_f32 (const riscv_svm_polynomial_instance_f32 *S, const float32_t *in, int32_t *pResult)
SVM polynomial prediction.
- Parameters
S – [in] Pointer to an instance of the polynomial SVM structure.
in – [in] Pointer to input vector
pResult – [out] Decision value