Questionário vinculado ao guia · Médio Nível
O teste de truque de hash de recursos
Abrange buckets de hash de dimensão fixa, compensações de memória de vocabulário, colisões, hash assinado e por que os recursos de hash são mais difíceis de inspecionar posteriormente.
Pergunta 1 de 8
Qual problema central a técnica de hashing de recursos resolve para recursos categóricos ou de texto?
Visualize cada pergunta8 perguntas
As respostas e explicações aparecem conforme você responde ao teste.
- Qual problema central a técnica de hashing de recursos resolve para recursos categóricos ou de texto?
- It speeds up gradient descent convergence
- Elimina a necessidade de qualquer função de perda
- It avoids needing an explicit, growing dictionary to map every unique feature value to a fixed position
- It guarantees zero hash collisions
- Em um FeatureHasher de tamanho fixo, como um nome de recurso seleciona sua coordenada de saída?
- 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
- Dois strings de token não relacionados acabam no mesmo bucket de saída. Que evento de hashing ocorreu?
- 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
- Em hashing de recursos com sinal, o que determina se a contribuição de um recurso é adicionada ou subtraída?
- 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
- Por que a variante de hash assinada geralmente é preferida em relação ao hash não assinada?
- 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