Predictions

PHOTO EMBED

Thu Aug 05 2021 20:04:48 GMT+0000 (Coordinated Universal Time)

Saved by @CleverIT

df_slice = df[:-150]
Predictions = [loaded_models[0].predict(np.asarray(df['Price'])[j-Obs:j].reshape(1, Obs, 1)) for j in range(Obs, len(df_slice))]
Predictions = [df['Price'].iloc[0]]*Obs + [val[0][0] for val in Predictions]
content_copyCOPY