A dataset includes missing values and severe class imbalance; you want to optimize F1 while maintaining calibrated probabilities for downstream decision thresholds. Which training strategy best matches these requirements?
Answer
Use appropriate imbalance handling (e.g., class weights or resampling) while applying an imputation strategy that is fit on training data only, then choose a decision threshold based on a validation set using probability calibration (e.g., Platt scaling or isotonic regression if available in your workflow)
Explanation
Class imbalance handling improves F1, while calibration enables reliable thresholding on probabilities. Fitting imputation on training data prevents information leakage into validation/test.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You must design an evaluation workflow that prevents inadvertently training on labels leakage for a time-dependent dataset. Which approach best addresses this risk?
View question →
A team wants to train at scale using distributed training with high bandwidth while staying within AWS best practices for reproducibility and speed. Which setup is most appropriate?
View question →
You must fine-tune a foundation model for domain-specific text classification and ensure the resulting training/inference job is reproducible with strict artifact lineage. What should you use?
View question →
Your regression model shows strong performance on the training set but degrades after deployment due to covariate shift. Which action most aligns with an operational strategy covered by AWS ML practices to detect and mitigate shift?
View question →
You need to deploy a multi-model endpoint for 200 small models with low traffic, while preserving isolation and controlling scaling. Which configuration best fits these constraints?
View question →
A model trained in SageMaker must be deployed to multiple AWS accounts with consistent governance. Which combination best enforces policy controls while supporting multi-account deployments?
View question →