i have a data set of 9X120. want to use feedforwardnet and want to know how to define dataset such as simplefit_data

i have a data set of 9X120. want to use feedforwardnet and want to know how to define dataset such as simplefit_data

 Accepted Answer

>> [x,t] = simplefit_dataset;
[I N ] = size(x) % [ 1 94 ]
[O N ] = size(t) % [ 1 94 ]
% Instead of feedforwardnet, use fitnet for curvefitting or patternnet for classification.
net = fitnet;
MSE00 = mean(var(t',1)) % 8.3378
net.trainParam.goal = 0.01*MSE00;
[net tr] = train(net,x,t);
MSE = tr.perf(end) % 0.0202
NMSE = MSE/MSE00 % 0.0024
R2 = 1-NMSE % 0.9976 coefficient of determination (see Wikipedia)
Hope this helps.
Thank you for formally accepting my answer.
Greg

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!