Skip to content

Commit

Permalink
Run hide_logs before other methods
Browse files Browse the repository at this point in the history
  • Loading branch information
roquelopez committed Nov 9, 2023
1 parent be77959 commit 6e3c463
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions alpha_automl/automl_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def __init__(self, time_bound=15, metric=None, split_strategy='holdout', time_bo
:param verbose: Whether or not to show additional logs
"""

hide_logs(verbose)
self.time_bound = time_bound
self.time_bound_run = time_bound_run
self.metric = make_str_metric(metric)
Expand All @@ -57,9 +58,6 @@ def __init__(self, time_bound=15, metric=None, split_strategy='holdout', time_bo
self.y = None
self.leaderboard = None
self.automl_manager = AutoMLManager(self.output_folder, time_bound, time_bound_run, task, verbose)

hide_logs(verbose)

self._start_method = get_start_method(start_mode)
set_start_method(self._start_method, force=True)
check_input_for_multiprocessing(self._start_method, self.scorer._score_func, 'metric')
Expand Down

0 comments on commit 6e3c463

Please sign in to comment.