Login
Discover
Waves
Decks
Plus
Login
Signup
weichencoder
@weichencoder
25
Followers
3
Following
2
Resource Credits
Available
Used
Created
December 16, 2017
RSS Feed
Subscribe
Posts
Blog
Posts
Comments
Communities
Wallet
weichencoder
graphviz
2018-02-20 05:36
macOS下实现Keras模型的可视化及错误处理
第一部分:如何实现可视化 第一种:利用 plot_model 导出模型结构图 keras.utils.vis_utils模块提供了画出Keras模型的函数,依赖于graphviz。 该函数将已经设计好的模型画成结构图,并保存成图片: from keras.utils import plot_model plot_model(model, to_file='model.png')
$ 0.000
0
2
weichencoder
matplotlib
2018-02-16 09:05
解决macOS下matplotlib无法显示中文的问题
引言 Matplotlib是Python的一个不错的绘图框架,但是本身并不支持中文(默认配置中没有中文字体),所以如果绘图中出现了中文,会出现乱码。如图所示: 下面我们就来看看,如何愉快地解决它吧! 本人环境:macOS/Python2.7&3.6 亲测可用 方法一:一劳永逸的方法(当然只是在你的机器上,无法迁移到别人机器) 下载你想要的字体(这里以SimHei.ttf字体为例)
$ 0.000
1