PLSSVM - Parallel Least Squares Support Vector Machine
2.0.0
A Least Squares Support Vector Machine implementation using different backends.
|
Predicts the labels for data points using the polynomial kernel function. More...
#include <predict_kernel.hpp>
Public Types | |
using | real_type = T |
The type of the data. | |
Public Member Functions | |
device_kernel_predict_polynomial (real_type *out_d, const real_type *data_d, const real_type *data_last_d, const real_type *alpha_d, const kernel_index_type num_data_points, const real_type *points, const kernel_index_type num_predict_points, const kernel_index_type num_features, const int degree, const real_type gamma, const real_type coef0) | |
Construct a new device kernel to predict the labels for data points using the polynomial kernel function. More... | |
void | operator() (::sycl::nd_item< 2 > idx) const |
Function call operator overload performing the actual calculation. More... | |
Predicts the labels for data points using the polynomial kernel function.
Currently only single GPU execution is supported.
T | the type of the data points |
|
inline |
Construct a new device kernel to predict the labels for data points using the polynomial kernel function.
Currently only single GPU execution is supported.
[in] | out_d | the calculated predictions |
[in] | data_d | the one-dimension support vector matrix |
[in] | data_last_d | the last row of the support vector matrix |
[in] | alpha_d | the previously calculated weight for each data point |
[in] | num_data_points | the total number of support vectors |
[in] | points | the data points to predict |
[in] | num_predict_points | the total number of data points to predict |
[in] | num_features | the number of features per support vector and point to predict |
[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 |
|
inline |
Function call operator overload performing the actual calculation.
[in] | idx | the sycl::nd_item identifying an instance of the functor executing at each point in a sycl::range |