Use preprocessed to get min/max date in hyperopt

This commit is contained in:
Matthias
2020-09-18 07:45:47 +02:00
parent 9d4cdcad10
commit baa1142afa
2 changed files with 5 additions and 1 deletions

View File

@@ -650,7 +650,7 @@ class Hyperopt:
# Trim startup period from analyzed dataframe
for pair, df in preprocessed.items():
preprocessed[pair] = trim_dataframe(df, timerange)
min_date, max_date = get_timerange(data)
min_date, max_date = get_timerange(preprocessed)
logger.info(f'Hyperopting with data from {min_date.strftime(DATETIME_PRINT_FORMAT)} '
f'up to {max_date.strftime(DATETIME_PRINT_FORMAT)} '