fix Hyperopt-list avg-time filters

These should use a numeric field (which currently isn't available).

closes #5061
This commit is contained in:
Matthias
2021-05-31 20:00:47 +02:00
parent 2f816dff9b
commit f920c26802
4 changed files with 31 additions and 13 deletions

View File

@@ -1913,7 +1913,7 @@ def saved_hyperopt_results_legacy():
@pytest.fixture
def saved_hyperopt_results():
return [
hyperopt_res = [
{
'loss': 0.4366182531161519,
'params_dict': {
@@ -2042,3 +2042,9 @@ def saved_hyperopt_results():
'is_best': False
}
]
for res in hyperopt_res:
res['results_metrics']['holding_avg_s'] = res['results_metrics']['holding_avg'
].total_seconds()
return hyperopt_res