How can I plot a neural network?
26 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Franck Dernoncourt
el 22 de En. de 2013
Respondida: Sajjad Shawl
el 5 de Jun. de 2022
Say I created a neural network, such as net = feedforwardnet(30);, which I trained [net tr] = train(net,p,t);
How can I plot this neural network? I would like something like:
(I'm especially interested in having the weights displayed on the graph)
Thanks, Franck
0 comentarios
Respuesta aceptada
Greg Heath
el 23 de En. de 2013
The only NNTBX display that is available is
view(net)
However, perhaps you can find something online.
Hope this helps.
Thank you for accepting my answer.
Greg
Más respuestas (3)
Yashwant Kolluru
el 12 de Jul. de 2018
[a,b] = train(net,x,t); y = net(x); e = gsubtract(t,y); %%%%%%%%%%%%%%%%%%% figure, plotperform(b); figure, plottrainstate(b); figure, ploterrhist(e); figure, plotregression(t,y);
hope it helps
0 comentarios
fred ssemwogerere
el 2 de En. de 2020
Hello, with the latest Matlab version 2019b, you are availed with a wide range of functions that can do this job for you. With my program for neural network modeling, i added some lines of code that also plot the best neural network. You can start by checking out the "line" and "viscircles" functions in the Matlab documentation. These can help you with what you want to plot. Below is a sample plot output from my code, of the best network i was designing. With added work, you can modify the lines to visualize the magnitude and direction of the weights, remove the axis bars, and many other things that you would like to do.
Regards,
Fred
1 comentario
Sajjad Shawl
el 5 de Jun. de 2022
hi
have a look at this code from matlab exchange
quite usefull
Call the function to plot FNN: plotFNN(layersLength), where layersLength is a 1*n row vector containing the number of neurons in each layer.
https://www.mathworks.com/matlabcentral/fileexchange/87287-plot-feedforward-neural-networks), MATLAB Central File Exchange. Retrieved June 5, 2022.
0 comentarios
Ver también
Categorías
Más información sobre Sequence and Numeric Feature Data Workflows en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!