Changing the output of a neural network
Show older comments
Hi there,
I have a problem with the output of a neural network for data classification. The network has 4 target vectors.
Say for example the output (column vector) is
0.1 0 0.4 0.3
0.1 0.52 0.45 0.25
0.25 0.08 0.1 0.1
0.65 0.4 0.05 0.35
and then I round the output to get a one in each column, and get this
0 0 0 0
0 1 0 0
0 0 0 0
1 0 0 0
and then I use vec2ind(output) to return the rows that contain 1
It returns [4 2].
But columns 3 and 4 and are not classified.
How can I make it return the row with the highest probability estimate? So this example would return [4 2 2 4]
Many thanks
Accepted Answer
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!