Recurrent Neural Network with multiple time series

5 ビュー (過去 30 日間)
stephen
stephen 2016 年 8 月 3 日
編集済み: poonam 2018 年 11 月 27 日
Hi, I want to train a recurrent neural network with multiple time series. More specifically, I have M time series trajectories with a varying number of time steps in each trajectory. The documentation for layrecnet() only has examples for a single trajectory, M=1. In the examples, each column of the cell array represents a single time step and each row is a feature or an element. How should I structure the data to account for multiple trajectories? Or should I just retrain the NN for each trajectory in an online learning fashion?
Thanks,

採用された回答

Greg Heath
Greg Heath 2016 年 8 月 6 日
Your understanding of the term "multiple trajectories" is not clear to me.
However, you cannot update any old net with only new data because the net will forget the information from the old data UNLESS the new and old data contain the SAME summary statistics (e.g., mean, covariance, auto/cross correlations ... ). I like to think of it in terms of both new and old data are random samples from the same probability distribution.
For regression and classification:
If your net has been trained with datasetA and you wish to update it with datasetB, you should update it with a COMBINATION of datasets A & B )
For timeseries:
If your net has been trained with datasetA and you wish to update it with datasetB,
1. A and B have to be synchronous.
2. Update it with a VECTOR COMBINATION of datasets A & B ), i.e.,
A ==> [ A ; B ]
Hope this helps
Thank you for formally accepting my answer
Greg

その他の回答 (1 件)

Greg Heath
Greg Heath 2016 年 8 月 5 日
You can only train for one trajectory at a time;
A multidimensional input just indicats a vector valued signal on a single trajectory.
Hope this helps.
Greg
  3 件のコメント
poonam
poonam 2018 年 11 月 27 日
I have tried your suggestion. In my case I got new error
Error using preparets (line 105)
Feedback and inputs have different numbers of timesteps.
poonam
poonam 2018 年 11 月 27 日
編集済み: poonam 2018 年 11 月 27 日
Following up with this link..
I used the con2seq(in) like in below code.
in = [v1.'; v2.' ; v3.'];
con2seq(in)
% size(v1) = 532326 1
% size(v2) = 532326 1
% size(v3) = 532326 1
% size(in) = 3 532326
Error using con2seq (line 35)
Data has more than one timestep.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by