feat: improve output wording

This commit is contained in:
Matthias
2025-11-03 19:59:28 +01:00
parent d83f222a13
commit 8269333d9c
2 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -223,8 +223,9 @@ class HyperoptTools:
spaces = ["buy", "sell", "protection", "roi", "stoploss", "trailing", "max_open_trades"] spaces = ["buy", "sell", "protection", "roi", "stoploss", "trailing", "max_open_trades"]
spaces += [s for s in all_spaces if s not in spaces] spaces += [s for s in all_spaces if s not in spaces]
for space in spaces: for space in spaces:
name = space.capitalize() if space != "roi" else space.upper()
HyperoptTools._params_pretty_print( HyperoptTools._params_pretty_print(
params, space, f"{space.capitalize()} hyperspace params:", non_optimized params, space, f"{name} parameters:", non_optimized
) )
@staticmethod @staticmethod
+4 -4
View File
@@ -1319,10 +1319,10 @@ def test_hyperopt_list(mocker, capsys, caplog, tmp_path):
" 2/12", " 2/12",
" 10/12", " 10/12",
"Best result:", "Best result:",
"Buy hyperspace params", "Buy parameters",
"Sell hyperspace params", "Sell parameters",
"ROI table", "ROI parameters",
"Stoploss", "Stoploss parameters",
] ]
) )
assert all( assert all(