I am learning R and using LSTM to forecast PV solar power. I have a dataset of 1600 hours out of which I have made 1000 hours for training and 600 for testing. Now I have validated the model on the testing dataset. I want to forecast the next 200 hours using the LSTM model. But as I am learning R through the random posts, I have no idea what to do for the future forecast.
here is how I created arrays for input (wheredatalags = 1):
Chapter 10 in the Deep Learning with R book is completely devoted to doing time series predictions with Keras in R. I highly recommend you checkout out the two links to the code and the book :)
I am learning R and using LSTM to forecast PV solar power. I have a dataset of 1600 hours out of which I have made 1000 hours for training and 600 for testing. Now I have validated the model on the testing dataset. I want to forecast the next 200 hours using the LSTM model. But as I am learning R through the random posts, I have no idea what to do for the future forecast.
here is how I created arrays for input (wheredatalags = 1):
and the model:
and forecast using ;
pred_out <- model %>% predict(x.test, batch_size = batch.size) %>% .[,1]
everything works fine till now but the next step which is for future forecast is out of my understanding. I need guidance for this.