如何画出漂亮的神经网络图?

关注“逆锋起笔”领取视频教程

☞ 程序员进阶必备资源免费送「各种技术!」 ☜

仅作分享,不代表本公众号立场,侵权联系删除

转载于:Github

https://github.com/ashishpatel26/Tools-to-Design-or-Visualize-Architecture-of-Neural-Network

1. draw_convnet

一个用于画卷积神经网络的Python脚本

  • https://github.com/gwding/draw_convnet

2. NNSVG

  • http://alexlenail.me/NN-SVG/LeNet.html

3. PlotNeuralNet

  • https://github.com/HarisIqbal88/PlotNeuralNet

使用latex 来展示神经网络

4. Tensorboard

  • https://www.tensorflow.org/tensorboard/graphs

5. Caffe

  • https://github.com/BVLC/caffe/blob/master/python/caffe/draw.py

使用Caffe/draw.py

6.Matlab

  • http://www.mathworks.com/help/nnet/ref/view.html

7.Keras.js

  • https://transcranial.github.io/keras-js/#/inception-v3

8. DotNet

  • https://github.com/martisak/dotnets

9.  Graphviz

  • http://www.graphviz.org/

10. ConX

  • https://conx.readthedocs.io/en/latest/index.html

11. ENNUI 

  • https://math.mit.edu/ennui/

12.  Neataptic

  • https://wagenaartje.github.io/neataptic/

相关内容推荐

2020最新版《神经网络与深度学习》中文版 pdf 开放下载

Pandas官方文档中文版下载、图形深度学习 PPT 下载

下载!《基于 PyTorch 的自然语言处理》pdf

前端开发人员的救生工具

12 岁学习编程,17 岁香港高中生成苹果 WWDC2020 Swift 开发者挑战赛赢家!

关注我,获资源干货




????关注 程序员干货


点个在看,小编感恩大家❤️
作为一名AI语言模型,我无法直接画,但我可以告诉你如何使用Python的库来画BP神经网络。 推荐使用matplotlib库,它可以用来绘制各种类型的形,包括神经网络。 以下是一个简单的示例代码,可以画出一个包含3个输入节点、4个隐藏节点和2个输出节点的BP神经网络: ```python import matplotlib.pyplot as plt # 设置形大小 fig = plt.figure(figsize=(5, 5)) # 设置节点坐标 input_coords = [(0.1, 0.6), (0.1, 0.5), (0.1, 0.4)] hidden_coords = [(0.4, 0.7), (0.4, 0.6), (0.4, 0.5), (0.4, 0.4)] output_coords = [(0.7, 0.6), (0.7, 0.4)] # 绘制节点 for coord in input_coords: circle = plt.Circle(coord, 0.05, color='r') fig.gca().add_artist(circle) for coord in hidden_coords: circle = plt.Circle(coord, 0.05, color='b') fig.gca().add_artist(circle) for coord in output_coords: circle = plt.Circle(coord, 0.05, color='g') fig.gca().add_artist(circle) # 绘制连接线 for i, h in enumerate(hidden_coords): for j, o in enumerate(output_coords): plt.plot([h[0], o[0]], [h[1], o[1]], 'g') for i, inp in enumerate(input_coords): for j, h in enumerate(hidden_coords): plt.plot([inp[0], h[0]], [inp[1], h[1]], 'b') # 设置坐标轴范围 plt.xlim(0, 1) plt.ylim(0, 1) # 隐藏坐标轴 plt.axis('off') # 显示形 plt.show() ``` 运行代码后,会弹出一个窗口显示BP神经网络。你也可以将形保存为片,使用`plt.savefig()`方法即可。 当然,这只是一个简单的示例,如果你需要更复杂的绘需求,可以查看matplotlib的官方文档,或者使用更专业的绘库。
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值