20 using namespace shogun;
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';