How can I plot a neural network?
25 ビュー (過去 30 日間)
古いコメントを表示
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:
![](https://www.mathworks.com/matlabcentral/images/broken_image.png)
(I'm especially interested in having the weights displayed on the graph)
Thanks, Franck
0 件のコメント
採用された回答
Greg Heath
2013 年 1 月 23 日
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
その他の回答 (3 件)
Yashwant Kolluru
2018 年 7 月 12 日
[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 件のコメント
fred ssemwogerere
2020 年 1 月 2 日
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
![neural.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/257848/neural.png)
1 件のコメント
Sajjad Shawl
2022 年 6 月 5 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Sequence and Numeric Feature Data Workflows についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!