Skip to content
Quantoros

How can column reordering silently invalidate positional monotonic constraints?

Classic MLLevel: IntermediateXGBoost · Monotonic constraints

How can column reordering silently invalidate positional monotonic constraints?

Hints
  • Which feature does tuple position zero refer to?
  • Names can make the contract explicit.

Answer

A positional tuple follows feature order, so a reordered schema can constrain the wrong variable. Use a verified fixed schema or supported name-based constraints, and test predictions while varying each constrained feature.

Source and licence: XGBoost · Monotonic constraints · Apache-2.0 · answer: Quantoros editorial

Related questions