What are the extra return values of this Neural Network training code?
1 view (last 30 days)
Show older comments
Marco castillo
on 1 Apr 2015
Commented: Marco castillo
on 15 Apr 2015
Hello there, i'm analyzing a multilayer perceptron code and cant find what are the extra return values of the train function.
[net,tr,Y,E] = train(net,P,T);
where: net = Feedforward Network. P = inputs array. T = targets array.
Thanks.
0 Comments
Accepted Answer
Greg Heath
on 3 Apr 2015
For regression/curve-fitting (e.g., FITNET) and classification/pattern-recognition (e.g., PATTERNNET) with double variables
[ net tr y e ] = train( net, x, t );
% net - trained net
% tr - training record
% y - output y= net( x )
% e - error e = t - y
tr = tr % Command to divulge contents (NO SEMICOLON)
For time-series (e.g., TIMEDELAYNET, NARNET, NARXNET), with cell variables
[ neto tro Yo Eo Xof Aof ] = train( neto, Xo, To, Xoi, Aoi );
% o - openloop subscript
% Xoi - initial input delay state
% Aoi - initial output feedback delay state
% neto - trained openloop net
% tro - training record
% Yo - output Yo = net( Xo, Xoi, Aoi)
% Eo - error Eo = gsubtract( To , Yo)
% Xof - final input delay state
% Aof - final output delay state [ Yo Xof Aof ] = net( Xo, Xoi, Aoi)
Hope this helps.
THANK YOU FOR FORMALLY ACCEPTING MY ANSWER
Greg
More Answers (0)
See Also
Categories
Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!