Study FAQ
Why is the primary metric missing from an Azure ML sweep trial?
Also asked as 2
- What should I check when Azure Machine Learning cannot find a sweep objective?
- How do I get an Azure ML sweep job to recognize the metric logged by the training script?
Answer
Check that one trial actually logs a number under the exact name configured as primary_metric. For example, an objective named validation_rmse will not match a tracking entry named rmse. Inspect the trial logs for an earlier failure that prevented the metric from being emitted.
Verify goal as well: minimize a validation error such as RMSE and maximize a larger-is-better measure when that matches the experiment. Confirm what population the logged value measures. A precisely named training-set metric still cannot answer a validation question. Fix and verify one trial before resubmitting a large search.
Microsoft Learn
Full explanation
AI-300: Choosing and Comparing Training Experiments
Study guide · AI-300
Read the full explanation