24 ret += weights[(f->weight_index + offset) & mask] * f->x;
33 float32_t w = weights[(f->weight_index+offset) & mask];
uint32_t weight_index
Hashed index in weight vector.
uint32_t vw_size_t
vw_size_t typedef to work across platforms
T * end
Pointer to last set element in the array.
T * begin
Pointer to first element of the array.
float32_t sd_offset_add(float32_t *weights, vw_size_t mask, VwFeature *begin, VwFeature *end, vw_size_t offset)
Class v_array taken directly from JL's implementation.
float32_t one_pf_quad_predict_trunc(float32_t *weights, VwFeature &f, v_array< VwFeature > &cross_features, vw_size_t mask, float32_t gravity)
float32_t sd_offset_truncadd(float32_t *weights, vw_size_t mask, VwFeature *begin, VwFeature *end, vw_size_t offset, float32_t gravity)
const int32_t quadratic_constant
Constant used while hashing/accessing quadratic features.
float32_t real_weight(float32_t w, float32_t gravity)
float32_t x
Feature value.
all of classes and functions are contained in the shogun namespace
float32_t one_pf_quad_predict(float32_t *weights, VwFeature &f, v_array< VwFeature > &cross_features, vw_size_t mask)