ML Model and Foundation Model (FM) Development
A custom training script prints validation F1 scores to its logs. How should an engineer configure SageMaker AI AMT to select the trial with the highest validation F1?
Show the answer
Correct answerA. Define a metric extraction expression and maximize that metric
AWhy this is right: The metric definition extracts validation F1, and maximization favors the highest score.
BWhy not this: The extraction expression exposes the metric, but minimizing F1 favors lower scores.
CWhy not this: Training loss is not validation F1, and maximizing loss generally favors worse training performance.
DWhy not this: A fixed hyperparameter is a training input, not an observed metric used to rank trials.
For a custom logged metric, AMT needs a metric definition that extracts its value and a matching objective metric configured for maximization. Minimizing F1 would favor worse scores.