Answers.Body: <p>What you could do is just try and bypass the rest of the network after the LSTM if it isn't the 5'th minute.
  Depending on your framework this can be easy or a painstakingly task compared to the alternative.
  The alternative is just running and throwing away the output that isn't the next 5'th minute. While the last may seem inefficient it's rather easy to implement and takes just a bit more execution time. If execution time isn't a problem it's the easiest to get started with, if it doesn't work for your task you can always change it.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-12T20:28:42.453Z
Answers.Text: Thanks for the answer. Can you please elaborate on your first solution? Also, the problem I see with the second solution  is that after time n until time n+5, I have no parameter information to keep continuing the model. I turn of data gathering for the next five minutes. I want to predict. Does that make sense?
Answers.UserDisplayName: user101464
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-12T20:18:19.590Z
Answers.LastActivityDate: 2020-02-12T20:18:19.590Z
Answers.UserDisplayName: hal9000
Body: <p>I am a newbie to machine learning. I have an LSTM model that predicts the next output n+1</p>
  
  <p>time 1, params 1, output 1</p>
  
  <p>time 2, params 2, output 2</p>
  
  <p>time 3, params 3, output 3</p>
  
  <p>.
  .</p>
  
  <p>time n, params n, , output n</p>
  
  <p>time n+1 --> predicts output n+1</p>
  
  <p> Here the times are all in minutes, so I can predict the next output in the series which is going to be the next minute. My question is that what if I want to predict the next 5 minutes. One solution was to throw out all the data except in steps of 5 minutes so the next step is automatically would be 5 minutes. This is clearly a waste of all the data that I have gathered. Can you please recommend what I can do about the prediction on different time scales? </p>
  
Tags: <long-short-term-memory>
Title: LSTM model on different time scales
UserDisplayName: user101464
ThreadText: # LSTM model on different time scales
  
  (Asked by: username_0 on 2020-02-12)
  
  I am a newbie to machine learning. I have an LSTM model that predicts the next output n+1
  
  time 1, params 1, output 1
  
  time 2, params 2, output 2
  
  time 3, params 3, output 3
  
  .
  .
  
  time n, params n, , output n
  
  time n+1 --> predicts output n+1
  
   Here the times are all in minutes, so I can predict the next output in the series which is going to be the next minute. My question is that what if I want to predict the next 5 minutes. One solution was to throw out all the data except in steps of 5 minutes so the next step is automatically would be 5 minutes. This is clearly a waste of all the data that I have gathered. Can you please recommend what I can do about the prediction on different time scales?
  
  **Tags:** long-short-term-memory
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-02-12. Score: 1
  
  What you could do is just try and bypass the rest of the network after the LSTM if it isn't the 5'th minute.
  Depending on your framework this can be easy or a painstakingly task compared to the alternative.
  The alternative is just running and throwing away the output that isn't the next 5'th minute. While the last may seem inefficient it's rather easy to implement and takes just a bit more execution time. If execution time isn't a problem it's the easiest to get started with, if it doesn't work for your task you can always change it.
  
  > **Comments:**
  > **username_0**: Thanks for the answer. Can you please elaborate on your first solution? Also, the problem I see with the second solution  is that after time n until time n+5, I have no parameter information to keep continuing the model. I turn of data gathering for the next five minutes. I want to predict. Does that make sense?  
  
  ---
  
  