blob: 329401a4fb63c7f19881c10efa8128adee14623a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/**
* @file types.h
* @author Gertjan van den Burg
* @date August, 2013
* @brief Definitions of common types
*
* @details
* Here common types used throughout the program are defined.
*
*/
#ifndef GENSVM_TYPES_H
#define GENSVM_TYPES_H
/**
* @brief Implementation of true and false
*/
typedef enum {
false=0, /**< false keyword, corresponding to 0. */
true=1 /**< true keyword, corresponding to 1. */
} bool;
/**
* @brief type of training used in parameter grid search
*/
typedef enum {
CV=0, /**< cross validation */
TT=1 /**< data with existing train/test split */
} TrainType;
/**
* @brief type of kernel used in training
*/
typedef enum {
K_LINEAR=0, /**< Linear kernel */
K_POLY=1, /**< Polynomial kernel */
K_RBF=2, /**< RBF kernel */
K_SIGMOID=3, /**< Sigmoid kernel */
} KernelType;
#endif
|