ensure the lost points are prepended for FreqUI

This commit is contained in:
robcaulk 2022-08-30 18:55:58 +02:00
parent a58dd0bbf9
commit 7f52908e87

View File

@ -587,7 +587,7 @@ class IFreqaiModel(ABC):
# # for keras type models, the conv_window needs to be prepended so
# # viewing is correct in frequi
if self.freqai_info.get('keras', False):
if self.freqai_info.get('keras', False) or self.ft_params.get('inlier_metric_window', 0):
n_lost_points = self.freqai_info.get('conv_width', 2)
zeros_df = DataFrame(np.zeros((n_lost_points, len(hist_preds_df.columns))),
columns=hist_preds_df.columns)