DATABRICKS-CERTIFIED-PROFESSIONAL-DATA-SCIENTIST · Question #106
What are the advantages of the Hashing Features?
The correct answer is A. Requires the less memory B. Less pass through the training data. SGD-based classifiers avoid the need to predetermine vector size by simply picking a reasonable size and shoehorning the training data into vectors of that size. This approach is known as feature hashing. The shoehorning is done by picking one or more locations by using a hash…
Question
What are the advantages of the Hashing Features?
Options
- ARequires the less memory
- BLess pass through the training data
- CEasily reverse engineer vectors to determine which original feature mapped to a vector location
How the community answered
(68 responses)- A74% (50)
- C26% (18)
Explanation
SGD-based classifiers avoid the need to predetermine vector size by simply picking a reasonable size and shoehorning the training data into vectors of that size. This approach is known as feature hashing. The shoehorning is done by picking one or more locations by using a hash of the name of the variable for continuous variables or a hash of the variable name and the category name or word for categorical, textlike, or word-like data. This hashed feature approach has the distinct advantage of requiring less memory and one less pass through the training data, but it can make it much harder to reverse engineer vectors to determine which original feature mapped to a vector location. This is because multiple features may hash to the same location. With large vectors or with multiple locations per feature, this isn't a problem for accuracy but it can make it hard to understand what a classifier is doing. An additional benefit of feature hashing is that the unknown and unbounded vocabularies typical of word-like variables aren't a problem.
Topics
Community Discussion
No community discussion yet for this question.