feat: round hyperopt results to 13 digits (this removes floating point errors)

This commit is contained in:
Matthias
2025-05-08 19:24:31 +02:00
parent f94fd7d5fc
commit 8f8da51808
2 changed files with 26 additions and 17 deletions

View File

@@ -577,7 +577,7 @@ def test_generate_optimizer(mocker, hyperopt_conf) -> None:
"buy_plusdi": 0.02,
"buy_rsi": 35,
},
"roi": {"0": 0.12000000000000001, "20.0": 0.02, "50.0": 0.01, "110.0": 0},
"roi": {"0": 0.12, "20.0": 0.02, "50.0": 0.01, "110.0": 0},
"protection": {
"protection_cooldown_lookback": 20,
"protection_enabled": True,