MATLAB: Bias and variance of trained neural network

Deep Learning Toolboxneural networks

Hello How can we save the bias and variance of a trained network? thank you in advance

Best Answer

[x,t] = simplefit_dataset;
net = fitnet(4);
rng(0)
[ net tr y e ] = train(net,x,t);
biaserr = mean(e(:))
varerr = var(e(:))
HTH
Thank you for formally accepting my answer
Greg