MATLAB Answers

Timeseries multivariate forecasting example

12 views (last 30 days)
PEDRO MARTINS
PEDRO MARTINS on 22 Jan 2021
Answered: Anmol Dhiman on 27 Jan 2021
I am learning how to do a simple timeseries forecast with more than one variable.
I have found this example from the official matlab website:
Its the chickenpox example, and it works very well.
My question is, is there an example similar to that, but with more than one variable?
Or what does it need to be changed in that example?
Thank you

Answers (1)

Anmol Dhiman
Anmol Dhiman on 27 Jan 2021
Hi Pedro,
You can either change the above example or there are other method also for forecasting you can refer to them as well.
Here is the link of one such example.
If you desire to tweak the above example and make it work for you case, you can simply change the input of SequenceInputLayer according to number of variable. You may also need to change the LSTM layer input accordingly.
Hope it helps

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!