several non-feedback inputs to a dynamic nnetwork

2 次查看(过去 30 天)
hi
I am trying to train a net, something like this http://i44.tinypic.com/ofofmd.png that has 2 inputs signals with sizes 1 & 4 (as shown) and an one output. The problem is that I can not prepare the training data using the preparets, actually I don't know how to implement.
%v, xi, y all are 1*N
v = v;
x = [x1; x2; x3; x4];
y = y;
v = con2seq(v);
x = con2seq(x);
y = con2seq(y);
Xnf = {v; x}; % Non-feedback inputs ????????
Tnf = y; % Non-feedback targets
Tf = {}; % Feedback targets
[Xs,Xi,Ai,Ts] = preparets(NNC,Xnf,Tnf,Tf);
Thanks for your time :)

采纳的回答

haMed
haMed 2012-2-8
I found the answer!
The code should be changed to
%v, xi, y all are 1*N
v = v;
x = [x1; x2; x3; x4];
y = y;
v = con2seq(v);
x = con2seq(x);
y = con2seq(y);
Xnf = [v; x]; % Non-feedback inputs
Tnf = y; % Non-feedback targets
Tf = {}; % Feedback targets
[Xs,Xi,Ai,Ts] = preparets(NNC,Xnf,Tnf,Tf);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by