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
Related questions
A regression model trained in SageMaker shows heteroscedastic residuals: variance increases with predicted value. Which training change is most defensible for uncertainty-aware predictions?
View question →
In a SageMaker distributed training job, a practitioner wants to ensure deterministic results across restarts and scaling changes. Which combination best addresses this?
View question →
You observe that your model’s ROC-AUC is stable, but business metrics (precision at a fixed recall) degrade after retraining. What is the most likely root cause and best remedy?
View question →
A multi-tenant workload uses SageMaker endpoints with per-tenant isolation requirements for both performance and security. Which deployment pattern best meets these constraints?
View question →
Your training pipeline includes a feature engineering step that changes over time (new categories appear). To prevent training-serving skew, what is the best approach in AWS ML workflows?
View question →
During model evaluation, you compare two candidate models with different calibration quality. Which approach is most appropriate if the goal is reliable probability estimates (not just ranking)?
View question →