If only income should increase risk score and age is unconstrained, why is setting both monotonic entries to +1 a…
Classic MLLevel: IntermediateXGBoost · Monotonic constraints
If only income should increase risk score and age is unconstrained, why is setting both monotonic entries to +1 a modeling error?
Hints
- Zero has a specific meaning in the constraint vector.
- Constrained and unused are different states.
Answer
It adds an unsupported restriction on age. Use +1 for the intended increasing feature and 0 for no constraint; leaving a feature unconstrained does not mean excluding it.
Source and licence: XGBoost · Monotonic constraints · Apache-2.0 · answer: Quantoros editorial