AutoMLJobObjective - Amazon SageMaker
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Specifies a metric to minimize or maximize as the objective of a job. V2 API jobs (for example jobs created by calling CreateAutoMLJobV2), support Accuracy only.



The name of the objective metric used to measure the predictive quality of a machine learning system. During training, the model's parameters are updated iteratively to optimize its performance based on the feedback provided by the objective metric when evaluating the model on the validation dataset.

For the list of all available metrics supported by Autopilot, see Autopilot metrics.

If you do not specify a metric explicitly, the default behavior is to automatically use:

  • MSE: for regression.

  • F1: for binary classification

  • Accuracy: for multiclass classification.

Type: String

Valid Values: Accuracy | MSE | F1 | F1macro | AUC | RMSE | MAE | R2 | BalancedAccuracy | Precision | PrecisionMacro | Recall | RecallMacro

Required: Yes

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: