- addSparseFeatureVector
Add a sparse vector back into the dense vector itself w = w + alpha * fv
- allocateSpace
increase the size of the dense vector by 2 or contain the new idx (pick the
bigger one
- dotProduct
The dot product between a sparse feature vector and a dense vector. TODO Note
that we currently do n
- getInternalArray
should avoid using this function, currently only for liblinear
- getVectorLength
return The size of this dense vector
- needAllocateSpace
Decide if the feature vector contains features which are not covered by the
dense vector