SHOGUN v0.9.0
|
Class KernelPerceptron - currently unfinished implementation of a Kernel Perceptron.
在文件KernelPerceptron.h第24行定义。
公有成员 | |
CKernelPerceptron () | |
virtual | ~CKernelPerceptron () |
virtual bool | train (CFeatures *data=NULL) |
virtual float64_t | classify_example (int32_t num) |
virtual bool | load (FILE *srcfile) |
virtual bool | save (FILE *dstfile) |
virtual EClassifierType | get_classifier_type () |
virtual const char * | get_name () const |
constructor
在文件KernelPerceptron.cpp第17行定义。
~CKernelPerceptron | ( | ) | [virtual] |
在文件KernelPerceptron.cpp第23行定义。
float64_t classify_example | ( | int32_t | num | ) | [virtual] |
classify one specific example
num | which example to classify |
在文件KernelPerceptron.cpp第57行定义。
virtual EClassifierType get_classifier_type | ( | ) | [virtual] |
virtual const char* get_name | ( | void | ) | const [virtual] |
bool load | ( | FILE * | srcfile | ) | [virtual] |
load KernelPerceptron from file
srcfile | file to load from |
重载CClassifier。
在文件KernelPerceptron.cpp第42行定义。
bool save | ( | FILE * | dstfile | ) | [virtual] |
save KernelPerceptron to file
dstfile | file to save to |
重载CClassifier。
在文件KernelPerceptron.cpp第49行定义。
bool train | ( | CFeatures * | data = NULL | ) | [virtual] |
train kernel perceptron classifier
data | training data (parameter can be avoided if distance or kernel-based classifiers are used and distance/kernels are initialized with train data) |
重载CClassifier。
在文件KernelPerceptron.cpp第27行定义。