We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6566804 commit fd631ebCopy full SHA for fd631eb
src/sagemaker/tuner.py
@@ -559,6 +559,7 @@ def to_input_req(self):
559
"""
560
completion_criteria_config = {}
561
if self.max_number_of_training_jobs_not_improving is not None:
562
+ completion_criteria_config[BEST_OBJECTIVE_NOT_IMPROVING] = {}
563
completion_criteria_config[BEST_OBJECTIVE_NOT_IMPROVING][
564
MAX_NUMBER_OF_TRAINING_JOBS_NOT_IMPROVING
565
] = self.max_number_of_training_jobs_not_improving
@@ -569,6 +570,7 @@ def to_input_req(self):
569
570
] = self.target_objective_metric_value
571
572
if self.complete_on_convergence is not None:
573
+ completion_criteria_config[CONVERGENCE_DETECTED] = {}
574
completion_criteria_config[CONVERGENCE_DETECTED][COMPLETE_ON_CONVERGENCE_DETECTED] = (
575
"Enabled" if self.complete_on_convergence else "Disabled"
576
)
0 commit comments