Is maxdepth=0 a safe shallow-tree baseline in XGBoost?
Classic MLLevel: IntermediateXGBoost · Parameters
Is max_depth=0 a safe shallow-tree baseline in XGBoost?
Hints
- Check the sentinel value meaning.
- Unlimited depth can consume substantial memory.
Answer
No: zero means unlimited depth for supported methods, not a stump, and exact requires a nonzero limit. Use an explicit small positive depth and monitor memory.
Source and licence: XGBoost · Parameters · Apache-2.0 · answer: Quantoros editorial