Skip to content

Commit

Permalink
Change screenLogger output
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Bruzat committed Aug 19, 2019
1 parent 17c2e2f commit 7bbb4d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bayes_opt/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def _get_default_logger(verbose):


class ScreenLogger(_Tracker):
_default_cell_size = 9
_default_cell_size = 10
_default_precision = 4

def __init__(self, verbose=2):
Expand Down Expand Up @@ -67,7 +67,7 @@ def _step(self, instance, colour=Colours.black):
for key in instance.space.keys:
cells.append(self._format_number(res["params"][key]))

return "| " + " | ".join(map(colour, cells)) + " |"
return "|" + "|".join(map(colour, cells)) + "|"

def _header(self, instance):
cells = []
Expand All @@ -76,7 +76,7 @@ def _header(self, instance):
for key in instance.space.keys:
cells.append(self._format_key(key))

line = "| " + " | ".join(cells) + " |"
line = "|" + "|".join(cells) + "|"
self._header_length = len(line)
return line + "\n" + ("-" * self._header_length)

Expand Down

0 comments on commit 7bbb4d5

Please sign in to comment.