23 using namespace shogun;
26 : CLinearClassifier(), C1(1), C2(1), use_bias(true), epsilon(1e-3)
44 for (int32_t i=0; i<num_vec; i++)
87 if (valplus>max_val || max_dim==-1)
108 int32_t num_train_labels=labels->get_num_labels();
109 int32_t num_feat=features->get_dim_feature_space();
110 int32_t num_vec=features->get_num_vectors();
112 ASSERT(num_vec==num_train_labels);
122 SG_PRINT(
"finished setting up lpboost\n");
127 int32_t num_hypothesis=0;
135 SG_PRINT(
"iteration:%06d violator: %10.17f (>1.0) chosen: %d\n", num_hypothesis, violator, max_dim);
136 if (violator <= 1.0+epsilon && num_hypothesis>1)
138 SG_PRINT(
"converged after %d iterations!\n", num_hypothesis);
156 if (get_max_train_time()>0 && time.
cur_time_diff()>get_max_train_time())
163 for (int32_t i=0; i<num_hypothesis; i++)