Skip to content

Commit

Permalink
Merge pull request #4842 from wouterzwerink/patch-1
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
toshihikoyanase committed Jul 31, 2023
2 parents 9521497 + 8fdd896 commit 2f2636f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions optuna/study/study.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,9 +1006,7 @@ def objective(trial):
metric_names: A list of metric names for the objective function.
"""
if len(self.directions) != len(metric_names):
raise ValueError(
"The number of objectives must match thhe length of the metric names."
)
raise ValueError("The number of objectives must match the length of the metric names.")

self._storage.set_study_system_attr(
self._study_id, _SYSTEM_ATTR_METRIC_NAMES, metric_names
Expand Down

0 comments on commit 2f2636f

Please sign in to comment.