What changes if zeroasmissing=True is enabled for a sparse LightGBM feature where zero is a meaningful measured value?
Classic MLLevel: IntermediateLightGBM · Advanced topics
What changes if zero_as_missing=True is enabled for a sparse LightGBM feature where zero is a meaningful measured value?
Hints
- Sparse absence often represents a numerical zero.
- Missingness is a different state.
Answer
Explicit zeros and implicit sparse zeros become missing alongside NaNs. That changes the feature semantics, so distinguish true zero from unavailable measurements before enabling the option.
Source and licence: LightGBM · Advanced topics · MIT · answer: Quantoros editorial