MATLAB: Neural Network retrieve test dataset to plot

Deep Learning Toolboxneural networktraining

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?

Best Answer

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