Ensure train ordering after restart
Ensure lowest timestamps get trained first after restart
This commit is contained in:
parent
f9460c80c2
commit
ad652817ef
@ -711,7 +711,7 @@ class IFreqaiModel(ABC):
|
|||||||
key=lambda k: k[1]['trained_timestamp'])
|
key=lambda k: k[1]['trained_timestamp'])
|
||||||
for pair in pair_dict_sorted:
|
for pair in pair_dict_sorted:
|
||||||
if pair[0] in current_pairlist:
|
if pair[0] in current_pairlist:
|
||||||
best_queue.appendleft(pair[0])
|
best_queue.appendright(pair[0])
|
||||||
for pair in current_pairlist:
|
for pair in current_pairlist:
|
||||||
if pair not in best_queue:
|
if pair not in best_queue:
|
||||||
best_queue.appendleft(pair)
|
best_queue.appendleft(pair)
|
||||||
|
Loading…
Reference in New Issue
Block a user