Update hyperopt_commands.py

Missed a debug print
This commit is contained in:
Fredrik81 2020-02-09 19:32:09 +01:00 committed by GitHub
parent eb3783dc00
commit 5bf4c5869b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,8 +120,6 @@ def _hyperopt_filter_trials(trials: List, filteroptions: dict) -> List:
if filteroptions['only_profitable']: if filteroptions['only_profitable']:
trials = [x for x in trials if x['results_metrics']['profit'] > 0] trials = [x for x in trials if x['results_metrics']['profit'] > 0]
print(trials[0])
if not filteroptions['only_best']: if not filteroptions['only_best']:
if filteroptions['filter_min_avg_time'] > 0: if filteroptions['filter_min_avg_time'] > 0:
trials = [x for x in trials if x['results_metrics']['trade_count'] > 0] trials = [x for x in trials if x['results_metrics']['trade_count'] > 0]