Visible to Intel only — GUID: GUID-A0DF6FBE-32AB-4962-8522-C1F8DB51E049
Visible to Intel only — GUID: GUID-A0DF6FBE-32AB-4962-8522-C1F8DB51E049
Radial Basis Function (RBF) kernel
The Radial Basis Function (RBF) kernel is a popular kernel function used in kernelized learning algorithms.
Operation |
Computational methods |
Programming Interface |
||
Mathematical formulation
Refer to Developer Guide: Radial Basis Function (RBF) kernel.
Programming Interface
All types and functions in this section are declared in the oneapi::dal::rbf_kernel namespace and are available via inclusion of the oneapi/dal/algo/rbf_kernel.hpp header file.
Descriptor
template<typenameFloat=float,typenameMethod=method::by_default,typenameTask=task::by_default>classdescriptor
- Template Parameters
Constructors
descriptor()=default
Creates a new instance of the class with the default property values.
Properties
doublesigma
The coefficient of the RBF kernel. Default value: 1.0.
- Getter & Setter
-
double get_sigma() const
auto & set_sigma(double value)
Method tags
structdense
usingby_default=dense
Task tags
structcompute
Tag-type that parameterizes entities that are used to compute statistics, distance, and so on.
usingby_default=compute
Alias tag-type for the dense method.
Training compute(...)
Input
template<typenameTask=task::by_default>classcompute_input
- Template Parameters
-
Task – Tag-type that specifies the type of the problem to solve. Can be task::compute.
Constructors
compute_input(consttable&x, consttable&y)
Creates a new instance of the class with the given x and y.
Properties
consttable&y
An table with the data y, where each row stores one feature vector. Default value: table{}.
- Getter & Setter
-
const table & get_y() const
auto & set_y(const table &data)
consttable&x
An table with the data x, where each row stores one feature vector. Default value: table{}.
- Getter & Setter
-
const table & get_x() const
auto & set_x(const table &data)
Result
template<typenameTask=task::by_default>classcompute_result
- Template Parameters
-
Task – Tag-type that specifies the type of the problem to solve. Can be task::compute.
Constructors
compute_result()
Creates a new instance of the class with the default property values.
Properties
consttable&values
A table with the result kernel functions. Default value: table{}.
- Getter & Setter
-
const table & get_values() const
auto & set_values(const table &value)
Operation
template<typenameDescriptor>rbf_kernel::compute_resultcompute(constDescriptor&desc, constrbf_kernel::compute_input&input)
- Parameters
-
desc – RBF Kernel algorithm descriptor rbf_kernel::descriptor.
input – Input data for the computing operation
- Preconditions
-
input.data.is_empty == false