Fix small merge mistake

This commit is contained in:
Matthias
2020-08-11 20:10:43 +02:00
parent 688d657fe2
commit 77541935a8
2 changed files with 37 additions and 23 deletions

View File

@@ -183,17 +183,17 @@ def _hyperopt_filter_epochs(epochs: List, filteroptions: dict) -> List:
if x['results_metrics']['profit'] < filteroptions['filter_max_total_profit']
]
if filteroptions['filter_min_objective'] is not None:
trials = [x for x in trials if x['results_metrics']['trade_count'] > 0]
# trials = [x for x in trials if x['loss'] != 20]
trials = [
x for x in trials
epochs = [x for x in epochs if x['results_metrics']['trade_count'] > 0]
# epochs = [x for x in epochs if x['loss'] != 20]
epochs = [
x for x in epochs
if x['loss'] < filteroptions['filter_min_objective']
]
if filteroptions['filter_max_objective'] is not None:
trials = [x for x in trials if x['results_metrics']['trade_count'] > 0]
# trials = [x for x in trials if x['loss'] != 20]
trials = [
x for x in trials
epochs = [x for x in epochs if x['results_metrics']['trade_count'] > 0]
# epochs = [x for x in epochs if x['loss'] != 20]
epochs = [
x for x in epochs
if x['loss'] > filteroptions['filter_max_objective']
]