From 4f0f3e5b64cf38a96dbf8aa7fa1cb21177373d7a Mon Sep 17 00:00:00 2001 From: Wagner Costa Santos Date: Wed, 9 Nov 2022 10:07:24 -0300 Subject: [PATCH] removed unnecessary code --- 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 1dc326079..09e965b82 100644 --- a/freqtrade/freqai/freqai_interface.py +++ b/freqtrade/freqai/freqai_interface.py @@ -829,6 +829,8 @@ class IFreqaiModel(ABC): def backtesting_fit_live_predictions(self, dk: FreqaiDataKitchen): """ Apply fit_live_predictions function in backtesting with a dummy historic_predictions + The loop is required to simulate dry/live operation, as it is not possible to predict + the type of logic implemented by the user. :param dk: datakitchen object """ fit_live_predictions_candles = self.freqai_info.get("fit_live_predictions_candles", 0) @@ -839,8 +841,6 @@ class IFreqaiModel(ABC): not (col.startswith("&") and col.endswith("_std")) and col not in self.dk.data["extra_returns_per_train"]) ] - self.dd.historic_predictions[self.dk.pair] = pd.DataFrame( - columns=dk.full_df.columns).astype(dk.full_df.dtypes) for index in range(len(dk.full_df)): if index >= fit_live_predictions_candles: