hash Encoder
fun hashEncoder(numFeatures: Int, alternateSign: Boolean = true, tokenizer: (String) -> Array<String>): HashEncoder(source)
Feature hashing (the hashing trick) vectorizer.
Return
the HashEncoder.
Parameters
num Features
the number of features in the output space.
alternate Sign
when true, an alternating sign is added to approximately conserve inner product.
tokenizer
the text tokenizer lambda.