trainFcn = 'trainscg'; % Scaled conjugate gradient backpropagation. % Create a Pattern Recognition Network hiddenLayerSize = 25; net = patternnet(hiddenLayerSize); % Setup Division of Data for Training, Validation, Testing net.divideParam.trainRatio = trainper/100; net.divideParam.valRatio = valper/100; net.divideParam.testRatio = testper/100; % Train the Network [net,tr] = train(net,x,t);
BOTH documentation commands
help patternnet and doc patternnet
have the following sample code for CLASSIFICATION & PATTERN-RECOGNITION:
[x,t] = iris_dataset; net = patternnet(10); net = train(net,x,t); view(net) y = net(x); perf = perform(net,t,y); classes = vec2ind(y);
However, the following are missing
1. Dimensions of x and t 2. Plots of x, t, and t vs x 3. Minimum possible number of hidden nodes 4. Initial state of the RNG (Needed for duplication) 5. Training record, tr 6. Plots of e = y-t vs x 7. Misclassified cases 8. trn/val/tst Error rates
For details see my NEWSGROUP posts
SIZES OF MATLAB CLASSIFICATION EXAMPLE DATA SETS http://www.mathworks.com/matlabcentral/newsreader/... view_thread/339984 and BEYOND THE HELP/DOC DOCUMENTATION : PATTERNNET for NN Classification and PatternRecognition http://www.mathworks.com/matlabcentral/newsreader/... view_thread/344832
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.