fix bug returning multiple targets for training

This commit is contained in:
robcaulk
2022-07-03 12:15:59 +02:00
parent ffb39a5029
commit 4ff0ef7359
3 changed files with 31 additions and 15 deletions

View File

@@ -1066,11 +1066,18 @@ class FreqaiDataKitchen:
"""
dataframe = base_dataframes[self.config["timeframe"]].copy()
pairs = self.freqai_config.get("corr_pairlist", [])
sgi = True
for tf in self.freqai_config.get("timeframes"):
dataframe = strategy.populate_any_indicators(
pair, pair, dataframe.copy(), tf, base_dataframes[tf], coin=pair.split("/")[0] + "-"
pair,
pair,
dataframe.copy(),
tf,
base_dataframes[tf],
coin=pair.split("/")[0] + "-",
set_generalized_indicators=sgi,
)
sgi = False
if pairs:
for i in pairs:
if pair in i: