MATLAB: How to estimate the error of a Neural Network training session using BOOTSTRP function bootstrapDeep Learning Toolbox I want to know how I can use the BOOTSTRP function from the Statistics Toolbox to estimate the error of a neural network training session with a training set, a validation set, and a test set. Best Answer The following is a simple example that demonstrates the use of the BOOTSTRP function to estimate the error.function estimateErrorX = [0:0.1:4]';Y = sin(X)';net = newff(minmax(X'),[21 1],{'tansig' 'purelin'}); % Create a neural networknet.trainParam.show = NaN; % don’t show learning curve plotstats = bootstrp(10, @(X,Y) bootstrptst(X,Y,net), X,Y) % bootstrapplot(stats) % plots how the network error responded to 10 training sessions using % 41 samples resampled randomly from x and y variables%%%%%%%%%%%%%%%%%%% bootstrptst.m%%%%%%%%%%%%%%%%%function err = bootstrptst(p, t, mynet)p = p'; % assuming samples are rows and input attributes are columnst = t'; % assuming samples are rows and output attributes are columns[mynet, TR, out] = train(mynet, p, t); %trainerr = mse(out-t); % return error Related SolutionsMATLAB: How to train a feedfordward neural network with error weights Use the command window help mse doc mseHope this helps.Thank you for formally accepting my answerGreg MATLAB: Bias problem with trainb Just use the current (i.e., non-obsolete) classifier net = patternnet([]); % [] => No hidden layer for linear modelFor documentation help patternnet doc patternnetHope this helps.Thank you for formally accepting my answerGreg Related QuestionNeural network with multiple inputs and single output – How to improve the performance of neural networkI need to know the data used for training, validation and test in neural networkNormalize Inputs and Targets of neural networkHow to train ann with multiple input dataHow to add more hidden layers on the nftool code that I exported from the nnstart GUI
Best Answer