Skip to content

Commit

Permalink
minor edit on MetaTune class __init__.py method
Browse files Browse the repository at this point in the history
  • Loading branch information
ches-001 committed May 30, 2023
1 parent be6a2c1 commit ca85668
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _metatune.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def __init__(

valid_tasks: Iterable[str] = ["classification", "regression"]
if task not in valid_tasks:
raise ValueError(f"Invalid task {task}, expects tasks to be 'regression' or 'classification'")
raise ValueError(
f"Invalid task {task}, expects tasks to be 'regression' or 'classification', got {task}")

self.task = task
self.custom_tuners = custom_tuners
Expand Down

0 comments on commit ca85668

Please sign in to comment.