File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sdk/ml/azure-ai-ml/azure/ai/ml/entities/_job/sweep Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ class Objective(RestTranslatableMixin):
27
27
:caption: Assigning an objective to a SweepJob
28
28
"""
29
29
30
- def __init__ (self , goal : str , primary_metric : str ) -> None :
30
+ def __init__ (self , goal : str , primary_metric : Optional [ str ] = None ) -> None :
31
31
"""Optimization objective.
32
32
33
33
:param goal: Required. Defines supported metric goals for hyperparameter tuning. Acceptable values
34
34
are: "minimize", "maximize".
35
35
:type goal: str
36
- :param primary_metric: Required. Name of the metric to optimize.
36
+ :param primary_metric: Required. The name of the metric to optimize.
37
37
:type primary_metric: str
38
38
"""
39
39
self .goal = goal .lower ()
You can’t perform that action at this time.
0 commit comments