testing neural network in after successful training
Show older comments
I have made a neural network using nprtool and trained it with 500X4 and 500X1 input and output data respectively. Now for testing I assume that for each row the net will output one value However, if I test it using
result = net([12 5 3 4]);
it result is 1X4 array instead of 1X1. why is this like ? Thanks Shomaail
Answers (1)
harjeet singh
on 15 Dec 2015
do try
result = net([12 5 3 4]');
3 Comments
SyedShomaail Jafri
on 16 Dec 2015
Edited: SyedShomaail Jafri
on 16 Dec 2015
harjeet singh
on 16 Dec 2015
do upload an example how you are training your NN
Greg Heath
on 17 Dec 2015
Harjeet's format is correct. For N I-dimensional input vectors with corresponding O-dimensional output (including target) vectors.
[ I N ] = size(input)
[ O N ] = size(target)
output = net(input);
[ O N ] = size(output)
Hope this helps.
Greg
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!