Data Science, Machine Learning, Time Series Forecasting, Lstm, Deep Learning.
r2_score(ts_data[n_steps_in:train_size], fits[n_steps_in:]) # Plot actual, fits, and forecasts plt.figure(figsize=(10, 6)) plt.plot(date_range, ts_data, label='Actual', color='blue') plt.plot(date_range[:train_size], fits, label='Fitted', color='green') plt.plot(date_range[train_size:],