Skip to content

Commit f5cfc60

Browse files
author
justin.fung
committed
print both digits of the exponent in scientific notation form for float parameters with values >= 10,000 in the ScreenLogger
1 parent 91441fe commit f5cfc60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bayes_opt/logger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ def verbose(self, v):
3030

3131
def _format_number(self, x):
3232
if isinstance(x, int):
33-
s = "{x:< {s}}".format(
33+
s = "{x:<{s}}".format(
3434
x=x,
3535
s=self._default_cell_size,
3636
)
3737
else:
38-
s = "{x:< {s}.{p}}".format(
38+
s = "{x:<{s}.{p}}".format(
3939
x=x,
4040
s=self._default_cell_size,
4141
p=self._default_precision,

0 commit comments

Comments
 (0)