Force high priority pair to be trained before anything else.

This commit is contained in:
robcaulk 2022-06-01 07:55:05 +02:00
parent 7523ed825e
commit 0b0dd8dd80
2 changed files with 2 additions and 5 deletions

View File

@ -123,10 +123,6 @@ class FreqaiDataDrawer:
self.pair_dict[metadata['pair']]['priority'] = len(self.pair_dict)
return
# def create_training_queue(self, pairs: list) -> None:
# for i, pair in enumerate(pairs):
# self.training_queue[pair] = i + 1
def pair_to_end_of_training_queue(self, pair: str) -> None:
# march all pairs up in the queue
for p in self.pair_dict:

View File

@ -215,7 +215,8 @@ class IFreqaiModel(ABC):
self.data_drawer.return_null_values_to_strategy(dataframe, dh)
return dh
if (not self.training_on_separate_thread and not self.follow_mode):
if (not self.training_on_separate_thread and not self.follow_mode
and self.data_drawer.pair_dict[metadata['pair']]['priority'] == 1):
file_exists = False
if trained_timestamp != 0: # historical model available