Detailed Description
Definition at line 55 of file KRR.h.
List of all members.
Constructor & Destructor Documentation
default constructor
Definition at line 21 of file KRR.cpp.
constructor
- Parameters:
-
| tau | regularization constant tau |
| k | kernel |
| lab | labels |
Definition at line 28 of file KRR.cpp.
Member Function Documentation
classify regression
- Returns:
- resulting labels
Reimplemented from CKernelMachine.
Definition at line 97 of file KRR.cpp.
classify objects
- Parameters:
-
| data | (test)data to be classified |
- Returns:
- classified labels
Reimplemented from CKernelMachine.
Definition at line 104 of file KRR.h.
float64_t classify_example |
( |
int32_t |
num |
) |
[virtual] |
classify one example
- Parameters:
-
| num | which example to classify |
- Returns:
- result
Reimplemented from CKernelMachine.
Definition at line 127 of file KRR.cpp.
get classifier type
- Returns:
- classifier type KRR
Reimplemented from CClassifier.
Definition at line 127 of file KRR.h.
virtual const char* get_name |
( |
void |
|
) |
const [virtual] |
bool load |
( |
FILE * |
srcfile |
) |
[virtual] |
load regression from file
- Parameters:
-
| srcfile | file to load from |
- Returns:
- if loading was successful
Reimplemented from CClassifier.
Definition at line 83 of file KRR.cpp.
bool save |
( |
FILE * |
dstfile |
) |
[virtual] |
save regression to file
- Parameters:
-
- Returns:
- if saving was successful
Reimplemented from CClassifier.
Definition at line 90 of file KRR.cpp.
set regularization constant
- Parameters:
-
Definition at line 74 of file KRR.h.
bool train |
( |
CFeatures * |
data = NULL |
) |
[virtual] |
train regression
- Parameters:
-
| data | training data (parameter can be avoided if distance or kernel-based regressors are used and distance/kernels are initialized with train data) |
- Returns:
- whether training was successful
Reimplemented from CClassifier.
Definition at line 43 of file KRR.cpp.
The documentation for this class was generated from the following files: