We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9d56b6 commit d115fc1Copy full SHA for d115fc1
bayes_opt/logger.py
@@ -75,10 +75,7 @@ def _format_number(self, x: float) -> str:
75
-------
76
A stringified, formatted version of `x`.
77
"""
78
- if abs(x) > 1e7 - 1:
79
- s = f"{x:.5e}"
80
- else:
81
- s = str(x)
+ s = f"{x:.5e}" if abs(x) >= 10000000.0 else str(x)
82
83
if len(s) > self._default_cell_size:
84
# Convert to str representation of scientific notation
0 commit comments