Neural Network retrieve test dataset to plot
2 次查看(过去 30 天)
显示 更早的评论
I am wanting to retrieve the data in the 'test' plot from training so that I can plot the data myself in a different format.
I can access the training, validation, test indices using [tr] but how do I find the network outputs for these to plot against the targets?
0 个评论
采纳的回答
Greg Heath
2015-1-28
From either
[ net tr y e ] = train( net, x, t );
% or
% [ net tr ] = train( net, x, t );
% y = net(x);
% e = t - y ;
ttrn = t(:,tr.trainInd);
ytrn = y(:,tr.trainInd);
and similarly for yval and ytst.
Hope this helps.
Thank you for formally accepting my answer
Greg
4 个评论
Greg Heath
2015-1-29
No. if train(net,x,t) contains all x and t, then y contains ytrn, yval and ytst.
Obviously you are doing something wrong. Please post code and results of using one of MATLAB's example data sets in
help nndatasets
doc nndatasets.
HTH.
GGreg
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!