kernel_params.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2025, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #pragma once
7 
9 
10 struct KernelParams;
11 
12 } // end namespace cuvs::distance::kernels
13 
14 namespace ML::matrix {
15 
16 enum class KernelType { LINEAR, POLYNOMIAL, RBF, TANH };
17 
18 struct KernelParams {
20  int degree;
21  double gamma;
22  double coef0;
23 
24  cuvs::distance::kernels::KernelParams to_cuvs() const;
25 };
26 
27 } // end namespace ML::matrix
Definition: kernel_params.hpp:14
KernelType
Definition: kernel_params.hpp:16
Definition: kernel_params.hpp:8
Definition: kernel_params.hpp:18
int degree
Definition: kernel_params.hpp:20
cuvs::distance::kernels::KernelParams to_cuvs() const
Definition: kernel_params.cpp:12
double coef0
Definition: kernel_params.hpp:22
KernelType kernel
Definition: kernel_params.hpp:19
double gamma
Definition: kernel_params.hpp:21