44 random_params(dim, 0) = vec[dim];
50 random_params(dim, sample) = vec[dim];
72 void CRandomKitchenSinksDotFeatures::init(
CDotFeatures* dataset,
93 ASSERT(
typeid(*
this) ==
typeid(*df));
104 tmp_dot_2 = other->
post_dot(tmp_dot_2, i);
105 dot_product += tmp_dot_1 * tmp_dot_2;
111 int32_t vec_idx1,
const float64_t* vec2, int32_t vec2_len)
121 dot_product += tmp_dot * vec2[i];
128 int32_t vec_idx1,
float64_t* vec2, int32_t vec2_len,
bool abs_val)
130 SG_DEBUG(
"Entering add_to_dense()\n");
140 vec2[i] += alpha * tmp_dot;
142 SG_DEBUG(
"Leaving add_to_dense()\n");
185 return "RandomKitchenSinksDotFeatures";