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')
|
retrain = elapsed_time > self.freqai_config.get('backtest_period')
|
||||||
if retrain:
|
if retrain:
|
||||||
trained_timerange.startts = int(time - self.freqai_config.get(
|
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)
|
trained_timerange.stopts = int(time)
|
||||||
else: # user passed no live_trained_timerange in config
|
else: # user passed no live_trained_timerange in config
|
||||||
trained_timerange.startts = int(time - self.freqai_config.get('train_period') *
|
trained_timerange.startts = int(time - self.freqai_config.get('train_period') *
|
||||||
|
@ -187,8 +187,7 @@ class IFreqaiModel(ABC):
|
|||||||
(model_filename,
|
(model_filename,
|
||||||
trained_timestamp,
|
trained_timestamp,
|
||||||
coin_first) = self.data_drawer.get_pair_dict_info(metadata)
|
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:
|
if not self.training_on_separate_thread:
|
||||||
file_exists = False
|
file_exists = False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user