Loading [MathJax]/extensions/tex2jax.js
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
svm_parameter.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2025, NVIDIA CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #pragma once
17 
18 #include <cuml/common/logger.hpp>
19 
20 namespace ML {
21 namespace SVM {
22 
24 
36 struct SvmParameter {
37  double C;
38  double cache_size;
41  int max_iter;
42  int nochange_steps; //<! Number of steps to continue with non-changing diff
43  double tol;
44  rapids_logger::level_enum verbosity;
45  double epsilon;
47 };
48 
49 }; // namespace SVM
50 }; // namespace ML
SvmType
Definition: svm_parameter.h:23
@ EPSILON_SVR
Definition: svm_parameter.h:23
@ C_SVC
Definition: svm_parameter.h:23
@ NU_SVC
Definition: svm_parameter.h:23
@ NU_SVR
Definition: svm_parameter.h:23
Definition: dbscan.hpp:30
Definition: svm_parameter.h:36
double tol
Tolerance used to stop fitting.
Definition: svm_parameter.h:43
double epsilon
epsilon parameter for epsilon-SVR
Definition: svm_parameter.h:45
int nochange_steps
Definition: svm_parameter.h:42
rapids_logger::level_enum verbosity
Print information about training.
Definition: svm_parameter.h:44
double C
Penalty term C.
Definition: svm_parameter.h:37
int max_iter
Definition: svm_parameter.h:41
SvmType svmType
Definition: svm_parameter.h:46
double cache_size
Definition: svm_parameter.h:38