16 using namespace shogun;
44 void COnlineLibLinear::init()
64 SG_ERROR(
"Specified features are not of type CStreamingDotFeatures\n");
113 QD = diag[y_current + 1];
125 C = upper_bound[y_current + 1];
126 G += alpha_current*diag[y_current + 1];
129 if (alpha_current == 0)
139 else if (alpha_current == C)
155 if (fabs(PG) > 1.0e-12)
159 d = (alpha_current - alpha_old) * y_current;
167 v += alpha_current*(alpha_current*diag[y_current + 1] - 2);
168 if (alpha_current > 0)
179 SG_INFO(
"Optimization finished.\n");
182 for (int32_t i=0; i<
w_dim; i++)
186 SG_INFO(
"Objective value = %lf\n", v/2);