Mit dem Guide verknüpftes Quiz · Mittel Ebene
Das Feature-Hashing-Trick-Quiz
Behandelt festdimensionale Hash-Buckets, Vokabular-Speicher-Kompromisse, Kollisionen, signiertes Hashing und warum Hash-Funktionen im Nachhinein schwieriger zu überprüfen sind.
Frage 1 von 8
Welches Kernproblem löst der Feature-Hashing-Trick für kategoriale oder Text-Features?
Sehen Sie sich jede Frage in der Vorschau an8 Fragen
Während Sie am Quiz teilnehmen, werden Antworten und Erklärungen angezeigt.
- Welches Kernproblem löst der Feature-Hashing-Trick für kategoriale oder Text-Features?
- It speeds up gradient descent convergence
- Dadurch entfällt die Notwendigkeit einer Verlustfunktion
- It avoids needing an explicit, growing dictionary to map every unique feature value to a fixed position
- It guarantees zero hash collisions
- Wie wählt ein Feature-Name in einem FeatureHasher mit fester Größe seine Ausgabekoordinate aus?
- 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
- Zwei unabhängige Token-Strings landen im selben Ausgabe-Bucket. Welches Hashing-Ereignis ist aufgetreten?
- 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
- Was bestimmt beim Signed-Feature-Hashing, ob ein Feature-Beitrag addiert oder subtrahiert wird?
- 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
- Warum wird die signierte Hashing-Variante im Allgemeinen dem unsignierten Hashing vorgezogen?
- 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