29 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;
102 SG_ERROR(
"Specified features are not of type CDotFeatures\n")
111 ASSERT(num_vec==num_train_labels)
125 t = 1 / (eta0 * lambda);
127 SG_INFO(
"lambda=%f, epochs=%d, eta0=%f\n", lambda, epochs, eta0)
139 SG_INFO(
"Training on %d vectors\n", num_vec)
143 bool is_log_loss =
false;
151 for (int32_t i=0; i<num_vec; i++)
160 if (z < 1 || is_log_loss)
189 if (z < 1 || is_log_loss)
215 SG_INFO(
"Estimating sparsity num_vec=%d num_feat=%d.\n", num_vec, c_dim)
220 for (int32_t j=0; j<num_vec ; j++, n++)
225 skip = (int32_t) ((16 * n * c_dim) / r);