From d18d8cf0ea532fc95f838556f1fbd74f0aec30a2 Mon Sep 17 00:00:00 2001 From: Robert Caulk Date: Thu, 26 Sep 2024 17:54:14 +0200 Subject: [PATCH] freqai_info -> ft_params --- .../freqai/prediction_models/PyTorchTransformerRegressor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqai/prediction_models/PyTorchTransformerRegressor.py b/freqtrade/freqai/prediction_models/PyTorchTransformerRegressor.py index 27b7de832..2d60d68cf 100644 --- a/freqtrade/freqai/prediction_models/PyTorchTransformerRegressor.py +++ b/freqtrade/freqai/prediction_models/PyTorchTransformerRegressor.py @@ -141,7 +141,7 @@ class PyTorchTransformerRegressor(BasePyTorchRegressor): pred_df = pd.DataFrame(yb.detach().numpy(), columns=dk.label_list) pred_df, _, _ = dk.label_pipeline.inverse_transform(pred_df) - if self.freqai_info.get("DI_threshold", 0) > 0: + if self.ft_params.get("DI_threshold", 0) > 0: dk.DI_values = dk.feature_pipeline["di"].di_values else: dk.DI_values = np.zeros(outliers.shape[0])