Why does feature hashing use alternate signs, and when might you disable them?
Classic MLLevel: AdvancedSigned collision control
Why does feature hashing use alternate signs, and when might you disable them?
Hints
- Collisions can add or cancel.
- Some estimators reject negative features.
Answer
This answer is part of mentoring
Advanced questions come with a full breakdown and a mock interview with a working quant researcher. The first call is free.
Source and licence: scikit-learn 1.7.2 — feature extraction · BSD-3-Clause · answer: Quantoros editorial