Defines CUDA functions for generating the q
vector.
More...
|
__kernel void | device_kernel_q_linear (__global real_type *q, __global real_type *data_d, __global real_type *data_last, const kernel_index_type num_rows, const kernel_index_type feature_range) |
| Calculates the q vector using the linear C-SVM kernel. More...
|
|
__kernel void | device_kernel_q_polynomial (__global real_type *q, __global real_type *data_d, __global real_type *data_last, const kernel_index_type num_rows, const kernel_index_type num_cols, const int degree, const real_type gamma, const real_type coef0) |
| Calculates the q vector using the polynomial C-SVM kernel. More...
|
|
__kernel void | device_kernel_q_rbf (__global real_type *q, __global real_type *data_d, __global real_type *data_last, const kernel_index_type num_rows, const kernel_index_type num_cols, const real_type gamma) |
| Calculates the q vector using the radial basis functions C-SVM kernel. More...
|
|
Defines CUDA functions for generating the q
vector.
- Author
- Alexander Van Craen
-
Marcel Breyer
- Copyright
- 2018-today The PLSSVM project - All Rights Reserved
- License
- This file is part of the PLSSVM project which is released under the MIT license. See the LICENSE.md file in the project root for full license information.
◆ device_kernel_q_linear()
__kernel void device_kernel_q_linear |
( |
__global real_type * |
q, |
|
|
__global real_type * |
data_d, |
|
|
__global real_type * |
data_last, |
|
|
const kernel_index_type |
num_rows, |
|
|
const kernel_index_type |
feature_range |
|
) |
| |
Calculates the q
vector using the linear C-SVM kernel.
Supports multi-GPU execution.
- Template Parameters
-
real_type | the type of the data |
- Parameters
-
[out] | q | the calculated q vector |
[in] | data_d | the one-dimensional data matrix |
[in] | data_last | the last row in the data matrix |
[in] | num_rows | the number of rows in the data matrix |
[in] | feature_range | number of features used for the calculation |
◆ device_kernel_q_polynomial()
__kernel void device_kernel_q_polynomial |
( |
__global real_type * |
q, |
|
|
__global real_type * |
data_d, |
|
|
__global real_type * |
data_last, |
|
|
const kernel_index_type |
num_rows, |
|
|
const kernel_index_type |
num_cols, |
|
|
const int |
degree, |
|
|
const real_type |
gamma, |
|
|
const real_type |
coef0 |
|
) |
| |
Calculates the q
vector using the polynomial C-SVM kernel.
Currently only single GPU execution is supported.
- Template Parameters
-
real_type | the type of the data |
- Parameters
-
[out] | q | the calculated q vector |
[in] | data_d | the one-dimensional data matrix |
[in] | data_last | the last row in the data matrix |
[in] | num_rows | the number of rows in the data matrix |
[in] | num_cols | the number of columns in the 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 |
◆ device_kernel_q_rbf()
__kernel void device_kernel_q_rbf |
( |
__global real_type * |
q, |
|
|
__global real_type * |
data_d, |
|
|
__global real_type * |
data_last, |
|
|
const kernel_index_type |
num_rows, |
|
|
const kernel_index_type |
num_cols, |
|
|
const real_type |
gamma |
|
) |
| |
Calculates the q
vector using the radial basis functions C-SVM kernel.
Currently only single GPU execution is supported.
- Template Parameters
-
real_type | the type of the data |
- Parameters
-
[out] | q | the calculated q vector |
[in] | data_d | the one-dimensional data matrix |
[in] | data_last | the last row in the data matrix |
[in] | num_rows | the number of rows in the data matrix |
[in] | num_cols | the number of columns in the data matrix |
[in] | gamma | the gamma parameter used in the rbf kernel function |