PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
svm_kernel.hpp
Go to the documentation of this file.
1 
12 #ifndef PLSSVM_BACKENDS_OPENMP_SVM_KERNEL_HPP_
13 #define PLSSVM_BACKENDS_OPENMP_SVM_KERNEL_HPP_
14 #pragma once
15 
16 #include <vector> // std::vector
17 
18 namespace plssvm::openmp {
19 
31 template <typename real_type>
32 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);
33 
48 template <typename real_type>
49 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);
50 
63 template <typename real_type>
64 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);
65 
66 } // namespace plssvm::openmp
67 
68 #endif // PLSSVM_BACKENDS_OPENMP_SVM_KERNEL_HPP_
Namespace containing the C-SVM using the OpenMP backend.
Definition: csvm.hpp:27
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.
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.
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.