29 using namespace shogun;
72 for (int32_t i=0; i < dim;i++)
76 B[i]+=diffw/ (lambda*diffw+ loss_val*dst[i]);
84 for (int32_t i=0; i < dim;i++)
88 Bc[i] = Bc[i] * c1 + B[i] * c2;
103 SG_ERROR(
"Specified features are not of type CDotFeatures\n");
112 ASSERT(num_vec==num_train_labels);
126 t = 1 / (eta0 * lambda);
128 SG_INFO(
"lambda=%f, epochs=%d, eta0=%f\n", lambda, epochs, eta0);
140 SG_INFO(
"Training on %d vectors\n", num_vec);
144 bool is_log_loss =
false;
152 for (int32_t i=0; i<num_vec; i++)
161 if (z < 1 || is_log_loss)
190 if (z < 1 || is_log_loss)
216 SG_INFO(
"Estimating sparsity num_vec=%d num_feat=%d.\n", num_vec, c_dim);
221 for (int32_t j=0; j<num_vec ; j++, n++)
226 skip = (int32_t) ((16 * n * c_dim) / r);