A model must be trained on highly imbalanced data while minimizing false negatives for a minority class. Which training-time configuration most directly addresses this imbalance in SageMaker?
Answer
Use class-weighted loss (e.g., weighted cross-entropy) during training, Oversample the minority class by duplicating rows before feature processing, then use unweighted loss
Explanation
Class weighting and resampling change the optimization objective toward the minority class, directly impacting false negatives. Changing thresholds alone affects decisions post-training rather than learning the right representation.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A customer wants real-time inference latency under 50 ms and plans to use a Nearest Neighbor model. Which design most likely satisfies latency and scaling requirements on AWS?
View question →
When using containerized training and inference, which configuration best supports repeatability across environments and prevents dependency-related inconsistencies?
View question →
For a streaming feature workflow, you must materialize features consistently for both training and online prediction using AWS Streaming + Feature Store. What approach best ensures consistent event-time handling?
View question →
A team is deciding between using built-in algorithms vs. custom training code for a transformer-based ranking model. Which criterion most strongly favors custom training?
View question →
A lead data-science team observes data drift and performance degradation after deployment. Which mitigation action is most aligned with operational ML monitoring in SageMaker?
View question →
You need a reproducible, secure pipeline that trains, registers, and deploys models with immutable artifacts. Which combination is most appropriate?
View question →