From 4eb29c8810bad526f79206f2688eeaf7b5a2da1a Mon Sep 17 00:00:00 2001 From: robcaulk Date: Sat, 28 May 2022 18:34:26 +0200 Subject: [PATCH] Dont reset pair priority if it doesnt successfully train --- freqtrade/freqai/freqai_interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/freqai/freqai_interface.py b/freqtrade/freqai/freqai_interface.py index dfd2f0bbd..ac0ad9d5a 100644 --- a/freqtrade/freqai/freqai_interface.py +++ b/freqtrade/freqai/freqai_interface.py @@ -325,7 +325,7 @@ class IFreqaiModel(ABC): metadata) except Exception: logger.warning('Mismatched sizes encountered in strategy') - self.data_drawer.pair_to_end_of_training_queue(metadata['pair']) + # self.data_drawer.pair_to_end_of_training_queue(metadata['pair']) self.training_on_separate_thread = False self.retrain = False return @@ -334,7 +334,7 @@ class IFreqaiModel(ABC): model = self.train(unfiltered_dataframe, metadata, dh) except ValueError: logger.warning('Value error encountered during training') - self.data_drawer.pair_to_end_of_training_queue(metadata['pair']) + # self.data_drawer.pair_to_end_of_training_queue(metadata['pair']) self.training_on_separate_thread = False self.retrain = False return