![]() |
PLSSVM - Parallel Least Squares Support Vector Machine
2.0.0
A Least Squares Support Vector Machine implementation using different backends.
|
Namespace containing the C-SVM using the OpenMP backend. More...
Classes | |
| class | csvm |
| A C-SVM implementation using OpenMP as backend. More... | |
| class | backend_exception |
| Exception type thrown if a problem with the OpenMP backend occurs. More... | |
Functions | |
| template<typename real_type > | |
| void | device_kernel_q_linear (std::vector< real_type > &q, const std::vector< std::vector< real_type >> &data) |
Calculates the q vector using the linear C-SVM kernel. More... | |
| template<typename real_type > | |
| void | device_kernel_q_polynomial (std::vector< real_type > &q, const std::vector< std::vector< real_type >> &data, int degree, real_type gamma, real_type coef0) |
Calculates the q vector using the polynomial C-SVM kernel. More... | |
| template<typename real_type > | |
| void | device_kernel_q_rbf (std::vector< real_type > &q, const std::vector< std::vector< real_type >> &data, real_type gamma) |
Calculates the q vector using the radial basis functions C-SVM kernel. More... | |
| template<typename real_type > | |
| void | device_kernel_linear (const std::vector< real_type > &q, std::vector< real_type > &ret, const std::vector< real_type > &d, const std::vector< std::vector< real_type >> &data, real_type QA_cost, real_type cost, real_type add) |
| Calculates the C-SVM kernel using the linear kernel function. More... | |
| template<typename real_type > | |
| void | device_kernel_polynomial (const std::vector< real_type > &q, std::vector< real_type > &ret, const std::vector< real_type > &d, const std::vector< std::vector< real_type >> &data, real_type QA_cost, real_type cost, real_type add, int degree, real_type gamma, real_type coef0) |
| Calculates the C-SVM kernel using the polynomial kernel function. More... | |
| template<typename real_type > | |
| void | device_kernel_rbf (const std::vector< real_type > &q, std::vector< real_type > &ret, const std::vector< real_type > &d, const std::vector< std::vector< real_type >> &data, real_type QA_cost, real_type cost, real_type add, real_type gamma) |
| Calculates the C-SVM kernel using the radial basis function kernel function. More... | |
Namespace containing the C-SVM using the OpenMP backend.
| void plssvm::openmp::device_kernel_q_linear | ( | std::vector< real_type > & | q, |
| const std::vector< std::vector< real_type >> & | data | ||
| ) |
Calculates the q vector using the linear C-SVM kernel.
| real_type | the type of the data |
| [out] | q | the calculated q vector |
| [in] | data | the two-dimensional data matrix |
| void plssvm::openmp::device_kernel_q_polynomial | ( | std::vector< real_type > & | q, |
| const std::vector< std::vector< real_type >> & | data, | ||
| int | degree, | ||
| real_type | gamma, | ||
| real_type | coef0 | ||
| ) |
Calculates the q vector using the polynomial C-SVM kernel.
| real_type | the type of the data |
| [out] | q | the calculated q vector |
| [in] | data | the two-dimensional data matrix |
| [in] | degree | the degree parameter used in the polynomial kernel function |
| [in] | gamma | the gamma parameter used in the polynomial kernel function |
| [in] | coef0 | the coef0 parameter used in the polynomial kernel function |
| void plssvm::openmp::device_kernel_q_rbf | ( | std::vector< real_type > & | q, |
| const std::vector< std::vector< real_type >> & | data, | ||
| real_type | gamma | ||
| ) |
Calculates the q vector using the radial basis functions C-SVM kernel.
| real_type | the type of the data |
| [out] | q | the calculated q vector |
| [in] | data | the two-dimensional data matrix |
| [in] | gamma | the gamma parameter used in the rbf kernel function |
| void plssvm::openmp::device_kernel_linear | ( | const std::vector< real_type > & | q, |
| std::vector< real_type > & | ret, | ||
| const std::vector< real_type > & | d, | ||
| const std::vector< std::vector< real_type >> & | data, | ||
| real_type | QA_cost, | ||
| real_type | cost, | ||
| real_type | add | ||
| ) |
Calculates the C-SVM kernel using the linear kernel function.
| real_type | the type of the data |
| [in] | q | the q vector |
| [out] | ret | the result vector |
| [in] | d | the right-hand side of the equation |
| [in] | data | the data matrix |
| [in] | QA_cost | he bottom right matrix entry multiplied by cost |
| [in] | cost | 1 / the cost parameter in the C-SVM |
| [in] | add | denotes whether the values are added or subtracted from the result vector |
| void plssvm::openmp::device_kernel_polynomial | ( | const std::vector< real_type > & | q, |
| std::vector< real_type > & | ret, | ||
| const std::vector< real_type > & | d, | ||
| const std::vector< std::vector< real_type >> & | data, | ||
| real_type | QA_cost, | ||
| real_type | cost, | ||
| real_type | add, | ||
| int | degree, | ||
| real_type | gamma, | ||
| real_type | coef0 | ||
| ) |
Calculates the C-SVM kernel using the polynomial kernel function.
| real_type | the type of the data |
| [in] | q | the q vector |
| [out] | ret | the result vector |
| [in] | d | the right-hand side of the equation |
| [in] | data | the data matrix |
| [in] | QA_cost | the bottom right matrix entry multiplied by cost |
| [in] | cost | 1 / the cost parameter in the C-SVM |
| [in] | add | denotes whether the values are added or subtracted from the result vector |
| [in] | degree | the degree parameter used in the polynomial kernel function |
| [in] | gamma | the gamma parameter used in the polynomial kernel function |
| [in] | coef0 | the coef0 parameter used in the polynomial kernel function |
| void plssvm::openmp::device_kernel_rbf | ( | const std::vector< real_type > & | q, |
| std::vector< real_type > & | ret, | ||
| const std::vector< real_type > & | d, | ||
| const std::vector< std::vector< real_type >> & | data, | ||
| real_type | QA_cost, | ||
| real_type | cost, | ||
| real_type | add, | ||
| real_type | gamma | ||
| ) |
Calculates the C-SVM kernel using the radial basis function kernel function.
| real_type | the type of the data |
| [in] | q | the q vector |
| [out] | ret | the result vector |
| [in] | d | the right-hand side of the equation |
| [in] | data | the data matrix |
| [in] | QA_cost | he bottom right matrix entry multiplied by cost |
| [in] | cost | 1 / the cost parameter in the C-SVM |
| [in] | add | denotes whether the values are added or subtracted from the result vector |
| [in] | gamma | the gamma parameter used in the rbf kernel function |