How is the output layer characterized in the neural network toolbox?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
MC3105
el 5 de Oct. de 2014
Comentada: Adnan Farooq Awan
el 21 de Sept. de 2017
Hello everyone,
I have created a neural network with one hidden layer and one output layer. Overall there are two input elements and 24 output elements. I am working with 10 hidden neurons in the hidden layer.
Now when I run view(net) the graphical overview shows me that I have two input elements, 10 hidden neurons in the hidden layer and 24 output elements. The graphic also shows me the output layer. Under the output layer the number 11 is displayed..
What does this number stand for? Is it a number for the output neurons? Why isn't it 24 then? Until now I always worked with neural networks with only one output. When running view(net) with those networks there was always the number 1 displayed under the output layer...
Thanks alot!
0 comentarios
Respuesta aceptada
Greg Heath
el 5 de Feb. de 2015
Your code looks ok. However, since the figure shows 3 inputs, I question your quoted sizes. Insert the following statements
inputs = input % this is a 2x194 matrix
targets = target; % this is a 24x194 matrix
[ I N ] = size(inputs)
[ O N ] = size(targets)
...
[net_cloudy, tr] = train(net_cloudy, inputs, targets);
view(net_cloudy)
...
whos % check cell and double sizes
Hope this helps.
Thank you for formally accepting my answer
Greg
0 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Sequence and Numeric Feature Data Workflows en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!