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 85 of file SVMLin.h.
get C1
- Returns:
- C1
Definition at line 67 of file SVMLin.h.
get C2
- Returns:
- C2
Definition at line 73 of file SVMLin.h.
get classifier type
- Returns:
- classifier type SVMLIN
Reimplemented from CClassifier.
Definition at line 43 of file SVMLin.h.
get epsilon
- Returns:
- epsilon
Definition at line 97 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 79 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 61 of file SVMLin.h.
set epsilon
- Parameters:
-
Definition at line 91 of file SVMLin.h.
bool train |
( |
CFeatures * |
data = NULL |
) |
[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 CClassifier.
Definition at line 39 of file SVMLin.cpp.
Member Data Documentation
if bias is used
Definition at line 111 of file SVMLin.h.
The documentation for this class was generated from the following files: