fix bug in setting new timerange for retraining

This commit is contained in:
robcaulk 2022-05-28 12:23:26 +02:00
parent 7870a86e9a
commit 2a4d1e2d64
2 changed files with 2 additions and 3 deletions

View File

@ -681,7 +681,7 @@ class FreqaiDataKitchen:
retrain = elapsed_time > self.freqai_config.get('backtest_period')
if retrain:
trained_timerange.startts = int(time - self.freqai_config.get(
'backtest_period', 0) * SECONDS_IN_DAY)
'train_period', 0) * SECONDS_IN_DAY)
trained_timerange.stopts = int(time)
else: # user passed no live_trained_timerange in config
trained_timerange.startts = int(time - self.freqai_config.get('train_period') *

View File

@ -187,8 +187,7 @@ class IFreqaiModel(ABC):
(model_filename,
trained_timestamp,
coin_first) = self.data_drawer.get_pair_dict_info(metadata)
if self.training_on_separate_thread:
print('debug_here')
if not self.training_on_separate_thread:
file_exists = False