Definition at line 27 of file MultiClassSVM.h.
CMultiClassSVM::CMultiClassSVM | ( | EMultiClassSVM | type | ) |
CMultiClassSVM::CMultiClassSVM | ( | EMultiClassSVM | type, | |
DREAL | C, | |||
CKernel * | k, | |||
CLabels * | lab | |||
) |
constructor
type | type of MultiClassSVM | |
C | constant C | |
k | kernel | |
lab | labels |
Definition at line 20 of file MultiClassSVM.cpp.
CMultiClassSVM::~CMultiClassSVM | ( | ) | [virtual] |
Definition at line 25 of file MultiClassSVM.cpp.
bool CMultiClassSVM::create_multiclass_svm | ( | int | num_classes | ) |
create multiclass SVM
num_classes | number of classes in SVM |
Definition at line 40 of file MultiClassSVM.cpp.
set SVM
num | number to set | |
svm | SVM to set |
Definition at line 63 of file MultiClassSVM.cpp.
get SVM
num | which SVM to get |
Definition at line 66 of file MultiClassSVM.h.
INT CMultiClassSVM::get_num_svms | ( | ) |
void CMultiClassSVM::cleanup | ( | ) |
cleanup SVM
Definition at line 30 of file MultiClassSVM.cpp.
classify all examples
labels | resulting labels |
Reimplemented from CSVM.
Definition at line 73 of file MultiClassSVM.cpp.
classify one example
num | number of example to classify |
Reimplemented from CSVM.
Definition at line 212 of file MultiClassSVM.cpp.
classify one vs rest
labels | resulting labels |
Definition at line 157 of file MultiClassSVM.cpp.
classify one example one vs rest
num | number of example of classify |
Definition at line 224 of file MultiClassSVM.cpp.
classify one vs one
labels | resulting labels |
Definition at line 85 of file MultiClassSVM.cpp.
classify one example one vs one
num | number of example of classify |
Definition at line 245 of file MultiClassSVM.cpp.
void CSVM::set_defaults | ( | INT | num_sv = 0 |
) | [inherited] |
bool CSVM::load | ( | FILE * | svm_file | ) | [virtual, inherited] |
bool CSVM::save | ( | FILE * | svm_file | ) | [virtual, inherited] |
void CSVM::set_nu | ( | DREAL | nue | ) | [inherited] |
void CSVM::set_weight_epsilon | ( | DREAL | eps | ) | [inherited] |
void CSVM::set_epsilon | ( | DREAL | eps | ) | [inherited] |
void CSVM::set_tube_epsilon | ( | DREAL | eps | ) | [inherited] |
void CSVM::set_C_mkl | ( | DREAL | C | ) | [inherited] |
void CSVM::set_qpsize | ( | INT | qps | ) | [inherited] |
void CSVM::set_bias_enabled | ( | bool | enable_bias | ) | [inherited] |
bool CSVM::get_bias_enabled | ( | ) | [inherited] |
DREAL CSVM::get_weight_epsilon | ( | ) | [inherited] |
DREAL CSVM::get_epsilon | ( | ) | [inherited] |
int CSVM::get_qpsize | ( | ) | [inherited] |
int CSVM::get_support_vector | ( | INT | idx | ) | [inherited] |
void CSVM::set_bias | ( | DREAL | bias | ) | [inherited] |
int CSVM::get_num_support_vectors | ( | ) | [inherited] |
bool CSVM::create_new_model | ( | INT | num | ) | [inherited] |
void CSVM::set_shrinking_enabled | ( | bool | enable | ) | [inherited] |
bool CSVM::get_shrinking_enabled | ( | ) | [inherited] |
void CSVM::set_mkl_enabled | ( | bool | enable | ) | [inherited] |
bool CSVM::get_mkl_enabled | ( | ) | [inherited] |
DREAL CSVM::compute_objective | ( | ) | [inherited] |
void CSVM::set_objective | ( | DREAL | v | ) | [inherited] |
DREAL CSVM::get_objective | ( | ) | [inherited] |
bool CSVM::init_kernel_optimization | ( | ) | [inherited] |
void * CSVM::classify_example_helper | ( | void * | p | ) | [static, inherited] |
void CSVM::set_precomputed_subkernels_enabled | ( | bool | flag | ) | [inherited] |
void CKernelMachine::set_kernel | ( | CKernel * | k | ) | [inherited] |
CKernel* CKernelMachine::get_kernel | ( | ) | [inherited] |
void CKernelMachine::set_batch_computation_enabled | ( | bool | enable | ) | [inherited] |
set batch computation enabled
enable | if batch computation shall be enabled |
Definition at line 72 of file KernelMachine.h.
bool CKernelMachine::get_batch_computation_enabled | ( | ) | [inherited] |
check if batch computation is enabled
Definition at line 81 of file KernelMachine.h.
void CKernelMachine::set_linadd_enabled | ( | bool | enable | ) | [inherited] |
set linadd enabled
enable | if linadd shall be enabled |
Definition at line 90 of file KernelMachine.h.
bool CKernelMachine::get_linadd_enabled | ( | ) | [inherited] |
check if linadd is enabled
Definition at line 99 of file KernelMachine.h.
virtual bool CClassifier::train | ( | ) | [virtual, inherited] |
train classifier
Reimplemented in CKernelPerceptron, CKNN, CPerceptron, CPluginEstimate, CGMNPSVM, CGNPPSVM, CGPBTSVM, CLibSVM, CLibSVMMultiClass, CLibSVMOneClass, CMPDSVM, CSubGradientSVM, CSVMLin, CSVMOcas, CSVMSGD, CWDSVMOcas, CHierarchical, CKMeans, and CLibSVR.
Definition at line 31 of file Classifier.h.
virtual void CClassifier::set_labels | ( | CLabels * | lab | ) | [virtual, inherited] |
virtual CLabels* CClassifier::get_labels | ( | ) | [virtual, inherited] |
get one specific label
i | index of label to get |
Definition at line 89 of file Classifier.h.
void CClassifier::set_max_train_time | ( | DREAL | t | ) | [inherited] |
set maximum training time
t | maximimum training time |
Definition at line 95 of file Classifier.h.
DREAL CClassifier::get_max_train_time | ( | ) | [inherited] |
get maximum training time
Definition at line 101 of file Classifier.h.
virtual EClassifierType CClassifier::get_classifier_type | ( | ) | [virtual, inherited] |
get classifier type
Reimplemented in CKernelPerceptron, CKNN, CPerceptron, CGMNPSVM, CGNPPSVM, CGPBTSVM, CLibSVM, CLibSVMMultiClass, CLibSVMOneClass, CMPDSVM, CSubGradientSVM, CSVMLin, CSVMOcas, CSVMSGD, CWDSVMOcas, CHierarchical, CKMeans, and CLibSVR.
Definition at line 107 of file Classifier.h.
EMultiClassSVM CMultiClassSVM::multiclass_type [protected] |
type of MultiClassSVM
Definition at line 130 of file MultiClassSVM.h.
INT CMultiClassSVM::m_num_classes [protected] |
number of classes
Definition at line 133 of file MultiClassSVM.h.
INT CMultiClassSVM::m_num_svms [protected] |
number of SVMs
Definition at line 135 of file MultiClassSVM.h.
CSVM** CMultiClassSVM::m_svms [protected] |
the SVMs
Definition at line 137 of file MultiClassSVM.h.
TModel CSVM::svm_model [protected, inherited] |
bool CSVM::svm_loaded [protected, inherited] |
DREAL CSVM::weight_epsilon [protected, inherited] |
DREAL CSVM::epsilon [protected, inherited] |
DREAL CSVM::tube_epsilon [protected, inherited] |
DREAL CSVM::C_mkl [protected, inherited] |
DREAL CSVM::objective [protected, inherited] |
int CSVM::qpsize [protected, inherited] |
bool CSVM::use_bias [protected, inherited] |
bool CSVM::use_shrinking [protected, inherited] |
bool CSVM::use_mkl [protected, inherited] |
bool CSVM::use_precomputed_subkernels [protected, inherited] |
CKernel* CKernelMachine::kernel [protected, inherited] |
kernel
Definition at line 113 of file KernelMachine.h.
bool CKernelMachine::use_batch_computation [protected, inherited] |
if batch computation is enabled
Definition at line 115 of file KernelMachine.h.
bool CKernelMachine::use_linadd [protected, inherited] |
if linadd is enabled
Definition at line 117 of file KernelMachine.h.
DREAL CClassifier::max_train_time [protected, inherited] |
maximum training time
Definition at line 111 of file Classifier.h.
CLabels* CClassifier::labels [protected, inherited] |
labels
Definition at line 114 of file Classifier.h.
CParallel CSGObject::parallel [static, inherited] |
Definition at line 105 of file SGObject.h.
CIO CSGObject::io [static, inherited] |
Definition at line 106 of file SGObject.h.
CVersion CSGObject::version [static, inherited] |
Definition at line 107 of file SGObject.h.