MKLMultiClass is a class for L1-norm multiclass MKL.
It is based on the GMNPSVM Multiclass SVM. Its own parameters are the L2 norm weight change based MKL Its termination criterion set by void set_mkl_epsilon(float64_t eps ); and the maximal number of MKL iterations set by void set_max_num_mkliters(int32_t maxnum); It passes the regularization constants C1 and C2 to GMNPSVM.
Definition at line 32 of file MKLMultiClass.h.
Public Member Functions |
| CMKLMultiClass () |
| CMKLMultiClass (float64_t C, CKernel *k, CLabels *lab) |
virtual | ~CMKLMultiClass () |
virtual EClassifierType | get_classifier_type () |
float64_t * | getsubkernelweights (int32_t &numweights) |
void | set_mkl_epsilon (float64_t eps) |
void | set_max_num_mkliters (int32_t maxnum) |
virtual void | set_mkl_norm (float64_t norm) |
| CMultiClassSVM () |
| CMultiClassSVM (EMultiClassSVM type) |
| CMultiClassSVM (EMultiClassSVM type, float64_t C, CKernel *k, CLabels *lab) |
virtual | ~CMultiClassSVM () |
bool | create_multiclass_svm (int32_t num_classes) |
bool | set_svm (int32_t num, CSVM *svm) |
CSVM * | get_svm (int32_t num) |
int32_t | get_num_svms () |
void | cleanup () |
virtual CLabels * | apply () |
virtual CLabels * | apply (CFeatures *data) |
virtual float64_t | apply (int32_t num) |
virtual CLabels * | classify_one_vs_rest () |
virtual float64_t | classify_example_one_vs_rest (int32_t num) |
CLabels * | classify_one_vs_one () |
float64_t | classify_example_one_vs_one (int32_t num) |
bool | load (FILE *svm_file) |
bool | save (FILE *svm_file) |
EMultiClassSVM | get_multiclass_type () |
| CSVM (int32_t num_sv=0) |
| CSVM (float64_t C, CKernel *k, CLabels *lab) |
virtual | ~CSVM () |
void | set_defaults (int32_t num_sv=0) |
virtual SGVector< float64_t > | get_linear_term () |
virtual void | set_linear_term (SGVector< float64_t > linear_term) |
void | set_nu (float64_t nue) |
void | set_C (float64_t c_neg, float64_t c_pos) |
void | set_epsilon (float64_t eps) |
void | set_tube_epsilon (float64_t eps) |
float64_t | get_tube_epsilon () |
void | set_qpsize (int32_t qps) |
float64_t | get_epsilon () |
float64_t | get_nu () |
float64_t | get_C1 () |
float64_t | get_C2 () |
int32_t | get_qpsize () |
void | set_shrinking_enabled (bool enable) |
bool | get_shrinking_enabled () |
float64_t | compute_svm_dual_objective () |
float64_t | compute_svm_primal_objective () |
void | set_objective (float64_t v) |
float64_t | get_objective () |
void | set_callback_function (CMKL *m, bool(*cb)(CMKL *mkl, const float64_t *sumw, const float64_t suma)) |
virtual const char * | get_name () const |
| CKernelMachine () |
virtual | ~CKernelMachine () |
void | set_kernel (CKernel *k) |
CKernel * | get_kernel () |
void | set_batch_computation_enabled (bool enable) |
bool | get_batch_computation_enabled () |
void | set_linadd_enabled (bool enable) |
bool | get_linadd_enabled () |
void | set_bias_enabled (bool enable_bias) |
bool | get_bias_enabled () |
float64_t | get_bias () |
void | set_bias (float64_t bias) |
int32_t | get_support_vector (int32_t idx) |
float64_t | get_alpha (int32_t idx) |
bool | set_support_vector (int32_t idx, int32_t val) |
bool | set_alpha (int32_t idx, float64_t val) |
int32_t | get_num_support_vectors () |
void | set_alphas (SGVector< float64_t > alphas) |
void | set_support_vectors (SGVector< int32_t > svs) |
SGVector< int32_t > | get_support_vectors () |
SGVector< float64_t > | get_alphas () |
bool | create_new_model (int32_t num) |
bool | init_kernel_optimization () |
| CMachine () |
virtual | ~CMachine () |
virtual bool | train (CFeatures *data=NULL) |
virtual void | set_labels (CLabels *lab) |
virtual CLabels * | get_labels () |
virtual float64_t | get_label (int32_t i) |
void | set_max_train_time (float64_t t) |
float64_t | get_max_train_time () |
void | set_solver_type (ESolverType st) |
ESolverType | get_solver_type () |
virtual void | set_store_model_features (bool store_model) |
| CSGObject () |
| CSGObject (const CSGObject &orig) |
virtual | ~CSGObject () |
virtual bool | is_generic (EPrimitiveType *generic) const |
template<class T > |
void | set_generic () |
void | unset_generic () |
virtual void | print_serializable (const char *prefix="") |
virtual bool | save_serializable (CSerializableFile *file, const char *prefix="") |
virtual bool | load_serializable (CSerializableFile *file, const char *prefix="") |
void | set_global_io (SGIO *io) |
SGIO * | get_global_io () |
void | set_global_parallel (Parallel *parallel) |
Parallel * | get_global_parallel () |
void | set_global_version (Version *version) |
Version * | get_global_version () |
SGVector< char * > | get_modelsel_names () |
char * | get_modsel_param_descr (const char *param_name) |
index_t | get_modsel_param_index (const char *param_name) |