mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
fix bug in setting new timerange for retraining
This commit is contained in:
parent
7870a86e9a
commit
2a4d1e2d64
|
@ -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') *
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user