"best" should be shown in gold

This commit is contained in:
Matthias
2024-07-07 20:03:49 +02:00
parent 004e1101e7
commit 94565d0d39

View File

@@ -90,9 +90,13 @@ class HyperoptOutput:
)
if r["results_metrics"].get("profit_total_abs", 0) != 0.0
else "--",
style="green"
if r["results_metrics"].get("profit_total_abs", 0) > 0
else "red",
style=(
"green"
if r["results_metrics"].get("profit_total_abs", 0) > 0
else "red"
)
if not r["is_best"]
else "",
),
# "Avg duration":
str(r["results_metrics"]["holding_avg"]),
@@ -112,7 +116,7 @@ class HyperoptOutput:
],
style=" ".join(
[
"bold " if r["is_best"] and highlight_best else "",
"bold gold1" if r["is_best"] and highlight_best else "",
"italic " if r["is_initial_point"] else "",
]
),