Detailed Description
class SVMLin
Definition at line 22 of file SVMLin.h.
List of all members.
Constructor & Destructor Documentation
default constructor
Definition at line 21 of file SVMLin.cpp.
constructor
- Parameters:
-
| C | constant C |
| traindat | training features |
| trainlab | labels for features |
Definition at line 26 of file SVMLin.cpp.
Member Function Documentation
bool get_bias_enabled |
( |
|
) |
|
get if bias is enabled
- Returns:
- if bias is enabled
Definition at line 75 of file SVMLin.h.
get C1
- Returns:
- C1
Definition at line 57 of file SVMLin.h.
get C2
- Returns:
- C2
Definition at line 63 of file SVMLin.h.
get classifier type
- Returns:
- classifier type SVMLIN
Reimplemented from CMachine.
Definition at line 43 of file SVMLin.h.
get epsilon
- Returns:
- epsilon
Definition at line 87 of file SVMLin.h.
virtual const char* get_name |
( |
void |
|
) |
const [virtual] |
void set_bias_enabled |
( |
bool |
enable_bias |
) |
|
set if bias shall be enabled
- Parameters:
-
| enable_bias | if bias shall be enabled |
Definition at line 69 of file SVMLin.h.
set C
- Parameters:
-
| c_neg | new C constant for negatively labeled examples |
| c_pos | new C constant for positively labeled examples |
Definition at line 51 of file SVMLin.h.
set epsilon
- Parameters:
-
Definition at line 81 of file SVMLin.h.
bool train_machine |
( |
CFeatures * |
data = NULL |
) |
[protected, virtual] |
train SVM classifier
- Parameters:
-
| data | training data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data) |
- Returns:
- whether training was successful
Reimplemented from CMachine.
Definition at line 39 of file SVMLin.cpp.
Member Data Documentation
if bias is used
Definition at line 112 of file SVMLin.h.
The documentation for this class was generated from the following files: