detect variable sized dataframes coming from strat, adjust our stored/returned data accordingly

This commit is contained in:
robcaulk
2022-05-30 13:55:46 +02:00
parent e229902381
commit 5b4c649d43
2 changed files with 37 additions and 14 deletions

View File

@@ -228,7 +228,8 @@ class IFreqaiModel(ABC):
preds, do_preds = self.predict(dataframe.iloc[-2:], dh)
self.data_drawer.append_model_predictions(metadata['pair'], preds, do_preds,
dh.data["target_mean"],
dh.data["target_std"], dh)
dh.data["target_std"], dh,
len(dataframe))
return dh