28
28
from smac .stats .stats import Stats
29
29
from smac .tae import StatusType
30
30
31
+ from autoPyTorch .automl_common .common .utils .backend import Backend , create
31
32
from autoPyTorch .constants import (
32
33
REGRESSION_TASKS ,
33
34
STRING_TO_OUTPUT_TYPES ,
45
46
from autoPyTorch .pipeline .components .setup .traditional_ml .classifier_models import get_available_classifiers
46
47
from autoPyTorch .pipeline .components .training .metrics .base import autoPyTorchMetric
47
48
from autoPyTorch .pipeline .components .training .metrics .utils import calculate_score , get_metrics
48
- from autoPyTorch .utils .backend import Backend , create
49
49
from autoPyTorch .utils .common import FitRequirement , replace_string_bool_to_bool
50
50
from autoPyTorch .utils .hyperparameter_search_space_update import HyperparameterSearchSpaceUpdates
51
51
from autoPyTorch .utils .logging_ import (
@@ -157,6 +157,7 @@ def __init__(
157
157
self ._backend = backend
158
158
else :
159
159
self ._backend = create (
160
+ prefix = 'autoPyTorch' ,
160
161
temporary_directory = self ._temporary_directory ,
161
162
output_directory = self ._output_directory ,
162
163
delete_tmp_folder_after_terminate = delete_tmp_folder_after_terminate ,
@@ -776,7 +777,6 @@ def _search(
776
777
self
777
778
778
779
"""
779
-
780
780
if self .task_type != dataset .task_type :
781
781
raise ValueError ("Incompatible dataset entered for current task,"
782
782
"expected dataset to have task type :{} got "
@@ -794,6 +794,10 @@ def _search(
794
794
795
795
if self ._logger is None :
796
796
self ._logger = self ._get_logger (self .dataset_name )
797
+
798
+ # Setup the logger for the backend
799
+ self ._backend .setup_logger (port = self ._logger_port )
800
+
797
801
self ._all_supported_metrics = all_supported_metrics
798
802
self ._disable_file_output = disable_file_output
799
803
self ._memory_limit = memory_limit
0 commit comments