A model is trained with a custom loss that enforces a monotonic relationship between one feature and the prediction, but at inference time the monotonicity is violated for some requests. Which diagnosis is most plausible?

Answer

Feature preprocessing differs between training and inference, breaking the monotonic constraint

Explanation

Custom monotonicity behavior is guaranteed only under the same effective feature transformation. Any preprocessing mismatch (scaling, clipping, encoding) can break the constraint at inference.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list