引導式測驗 · 中等 等級
特徵哈希技巧測驗
涵蓋固定維度哈希桶、詞彙記憶體權衡、衝突、簽名哈希,以及為什麼哈希特徵事後更難檢查。
問題 1 的 8
What core problem does the feature hashing trick solve for categorical or text features?
預覽每個問題8 問題
當您參加測驗時,就會出現答案和解釋。
- What core problem does the feature hashing trick solve for categorical or text features?
- It speeds up gradient descent convergence
- 它消除了對任何損失函數的需要
- It avoids needing an explicit, growing dictionary to map every unique feature value to a fixed position
- It guarantees zero hash collisions
- In a fixed-size FeatureHasher, how does a feature name select its output coordinate?
- By applying a hash function to the feature's string representation and taking the result modulo the number of buckets
- By alphabetically sorting all feature values first
- By counting how often the feature appears in the training set
- By asking a human annotator
- Two unrelated token strings land in the same output bucket. What hashing event has occurred?
- When the hash function crashes during training
- When a feature value has no valid hash
- When two buckets are empty at the same time
- When two different feature values map to the same bucket, merging their signal
- In signed feature hashing, what determines whether a feature contribution is added or subtracted?
- The current training label only
- A sign derived from the feature hash, which can be +1 or −1
- The order in which examples arrive
- The magnitude of the learning rate
- Why is the signed hashing variant generally preferred over unsigned hashing?
- It prevents all different features from colliding
- It stores the original feature dictionary for later recovery
- It turns hashed vectors into dense PCA components
- It can reduce systematic collision bias and preserve inner products in expectation under the hashing assumptions
- What common misconception about feature hashing does the guide directly correct?
- That it can only be used for text data
- That it is a form of dimensionality reduction like PCA meant to preserve variance or structure
- That it requires labeled data
- That it cannot be used in streaming settings
- Which named libraries or systems are mentioned as implementing feature hashing for streaming or out-of-core learning?
- scikit-learn's FeatureHasher and Vowpal Wabbit
- TensorFlow and PyTorch
- pandas and NumPy
- Only custom in-house tools with no public libraries
- In modern deep learning, what alternative to feature hashing has become common for representing categorical features, though hashing is still sometimes combined with it?
- One-vs-rest classifiers
- Decision tree binning
- Learned embedding tables
- VC dimension bounds