"best" should be shown in gold
This commit is contained in:
@@ -90,9 +90,13 @@ class HyperoptOutput:
|
|||||||
)
|
)
|
||||||
if r["results_metrics"].get("profit_total_abs", 0) != 0.0
|
if r["results_metrics"].get("profit_total_abs", 0) != 0.0
|
||||||
else "--",
|
else "--",
|
||||||
style="green"
|
style=(
|
||||||
if r["results_metrics"].get("profit_total_abs", 0) > 0
|
"green"
|
||||||
else "red",
|
if r["results_metrics"].get("profit_total_abs", 0) > 0
|
||||||
|
else "red"
|
||||||
|
)
|
||||||
|
if not r["is_best"]
|
||||||
|
else "",
|
||||||
),
|
),
|
||||||
# "Avg duration":
|
# "Avg duration":
|
||||||
str(r["results_metrics"]["holding_avg"]),
|
str(r["results_metrics"]["holding_avg"]),
|
||||||
@@ -112,7 +116,7 @@ class HyperoptOutput:
|
|||||||
],
|
],
|
||||||
style=" ".join(
|
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 "",
|
"italic " if r["is_initial_point"] else "",
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user