A feature map that uses the MurmurHash3 hash and mods on a prime giving the largest
feature index that can be used. Saves memory over an ExactFeatureMap because no explicit
map of Strings to Ints is maintained, and because you can use a model with fewer actual
parameters than features, if you can accept collisions. If the number of features used is
too small, you'll get a degradation in performance.
For more details on the hashing trick, see:
http://hunch.net/~jl/projects/hash_reps/index.html
Linear Supertypes
FeatureMap, Serializable, Serializable, AnyRef, Any
A feature map that uses the MurmurHash3 hash and mods on a prime giving the largest feature index that can be used. Saves memory over an ExactFeatureMap because no explicit map of Strings to Ints is maintained, and because you can use a model with fewer actual parameters than features, if you can accept collisions. If the number of features used is too small, you'll get a degradation in performance.
For more details on the hashing trick, see: http://hunch.net/~jl/projects/hash_reps/index.html