28 using namespace shogun;
71 for (int32_t i=0; i < dim;i++)
75 B[i]+=diffw/ (lambda*diffw+ loss_val*dst[i]);
83 for (int32_t i=0; i < dim;i++)
87 Bc[i] = Bc[i] * c1 + B[i] * c2;
101 SG_ERROR(
"Specified features are not of type CDotFeatures\n");
112 ASSERT(num_vec==num_train_labels);
127 t = 1 / (eta0 * lambda);
129 SG_INFO(
"lambda=%f, epochs=%d, eta0=%f\n", lambda, epochs, eta0);
142 SG_INFO(
"Training on %d vectors\n", num_vec);
146 bool is_log_loss =
false;
154 for (int32_t i=0; i<num_vec; i++)
163 if (z < 1 || is_log_loss)
192 if (z < 1 || is_log_loss)
221 SG_INFO(
"Estimating sparsity num_vec=%d num_feat=%d.\n", num_vec, c_dim);
226 for (int32_t j=0; j<num_vec ; j++, n++)
231 skip = (int32_t) ((16 * n * c_dim) / r);