Keras model.summary()的输出很好吗? [英] is there a nice output of Keras model.summary( )?
本文介绍了Keras model.summary()的输出很好吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可能会有一个很好的keras model.summary()输出,该输出可以包含在纸中,也可以绘制在一个像这样的漂亮表中.
is it possible to have a nice output of keras model.summary(), that can be included in paper, or can be ploted in a nice table like this.
推荐答案
您需要安装graphvis和pydot,但您可能希望由此获得结果.它没有表格,但我认为图形要好得多.
You need to install graphvis and pydot, but you might like the results from this. It doesn't make a table but the graph is much better in my opinion.
from keras.utils import plot_model
plot_model(model, to_file='model.png', show_shapes=True,show_layer_names=True)
但是,如果要将多个图层嵌套在一起,则必须制作正确命名的子模型.
But you would have to make properly named sub models if you want to nest the several layers together.
这篇关于Keras model.summary()的输出很好吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文