25 SG_PRINT(
"%scross validation number of runs %d\n", prefix, num_runs)
32 SG_PRINT(
"%scross validation number of folds %d\n", prefix, num_folds)
38 SG_PRINT(
"%scross validation run %d\n", prefix, run_index)
44 SG_PRINT(
"%sfold %d\n", prefix, fold_index)
60 CMachine* machine,
const char* prefix)
62 if (dynamic_cast<CLinearMachine*>(machine))
69 if (dynamic_cast<CKernelMachine*>(machine))
76 if (dynamic_cast<CLinearMulticlassMachine*>(machine)
95 if (dynamic_cast<CMKL*>(machine))
105 if (dynamic_cast<CMKLMulticlass*>(machine))
131 SG_PRINT(
"%sevaluation result=%f\n", prefix, result)
138 char* new_prefix=SG_MALLOC(
char, len+2);
139 memcpy(new_prefix,
string,
sizeof(
char)*len);
140 new_prefix[len]=
'\t';
141 new_prefix[len+1]=
'\0';
CMachine * get_machine(int32_t num) const
MKLMulticlass is a class for L1-norm Multiclass MKL.
virtual void update_test_result(CLabels *results, const char *prefix="")
char * append_tab_to_string(const char *string)
The class Labels models labels, i.e. class assignments of objects.
virtual void update_test_true_result(CLabels *results, const char *prefix="")
virtual const float64_t * get_subkernel_weights(int32_t &num_weights)
A generic KernelMachine interface.
generic kernel multiclass
A generic learning machine interface.
void display_vector(const char *name="vector", const char *prefix="") const
virtual void update_test_indices(SGVector< index_t > indices, const char *prefix="")
virtual void update_train_indices(SGVector< index_t > indices, const char *prefix="")
experimental abstract generic multiclass machine class
The Combined kernel is used to combine a number of kernels into a single CombinedKernel object by lin...
Class LinearMachine is a generic interface for all kinds of linear machines like classifiers.
Multiple Kernel Learning.
virtual void update_run_index(index_t run_index, const char *prefix="")
virtual SGVector< float64_t > get_w() const
virtual void init_num_folds(index_t num_folds, const char *prefix="")
virtual SGVector< float64_t > get_values()
virtual void update_fold_index(index_t fold_index, const char *prefix="")
SGVector< float64_t > get_alphas()
all of classes and functions are contained in the shogun namespace
virtual void update_trained_machine(CMachine *machine, const char *prefix="")
int32_t get_num_machines() const
virtual float64_t get_bias()
virtual void init_num_runs(index_t num_runs, const char *prefix="")
virtual void update_evaluation_result(float64_t result, const char *prefix="")