Skip to content

Commit

Permalink
fixup! refactor logging in api composer
Browse files Browse the repository at this point in the history
  • Loading branch information
gkirgizov committed Sep 20, 2022
1 parent 019cdca commit 9f5f286
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fedot/api/api_utils/api_composer.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,15 @@ def tune_final_pipeline(self, task: Task,
if self.timer.have_time_for_tuning():
# Tune all nodes in the pipeline
with self.timer.launch_tuning():
log.info(f'Hyperparameters tuning started with {timeout_for_tuning} sec. timeout')
self.log.info(f'Hyperparameters tuning started with {timeout_for_tuning} sec. timeout')
tuned_pipeline = tuner.tune(pipeline_gp_composed)
self.was_tuned = True
log.info('Hyperparameters tuning finished')
self.log.info('Hyperparameters tuning finished')
else:
log.info(f'Time for pipeline composing was {str(self.timer.composing_spend_time)}.\n'
f'The remaining {max(0, timeout_for_tuning)} seconds are not enough '
f'to tune the hyperparameters.')
log.info('Composed pipeline returned without tuning.')
self.log.info(f'Time for pipeline composing was {str(self.timer.composing_spend_time)}.\n'
f'The remaining {max(0, timeout_for_tuning)} seconds are not enough '
f'to tune the hyperparameters.')
self.log.info('Composed pipeline returned without tuning.')
tuned_pipeline = pipeline_gp_composed

return tuned_pipeline
Expand Down

0 comments on commit 9f5f286

Please # to comment.