Skip to content

Commit

Permalink
Revert making primary_metric w/o default type (#30687)
Browse files Browse the repository at this point in the history
  • Loading branch information
diondrapeck authored Jun 8, 2023
1 parent 5ac6d83 commit ffae900
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ class Objective(RestTranslatableMixin):
:caption: Assigning an objective to a SweepJob
"""

def __init__(self, goal: str, primary_metric: str) -> None:
def __init__(self, goal: str, primary_metric: Optional[str] = None) -> None:
"""Optimization objective.
:param goal: Required. Defines supported metric goals for hyperparameter tuning. Acceptable values
are: "minimize", "maximize".
:type goal: str
:param primary_metric: Required. Name of the metric to optimize.
:param primary_metric: Required. The name of the metric to optimize.
:type primary_metric: str
"""
self.goal = goal.lower()
Expand Down

0 comments on commit ffae900

Please sign in to comment.