简体   繁体   English

keras python中的model.sumary()的不同参数是什么意思?

[英]What does different arguments of model.sumary() in keras python mean?

When I write model.summary() I get something like 当我写model.summary()我得到类似

在此处输入图片说明

How can I get "connected to" argument? 如何获得“连接到”的论点? Also, can someone tell me the meaning of None in output shape argument? 另外,有人可以告诉我输出形状参数中None的含义吗?

None means that the number of samples that you feed into your network is not yet defined. None表示您尚未定义送入网络的样本数量。 This in general is a hyperparameter that you choose before training and is independent of your models architecture. 通常,这是您在训练之前选择的超参数,并且与模型架构无关。

model.summary() is documented here model.summary()记录在这里

You might want to look into model.get_weights() or model.get_config() (which are methods though). 您可能要研究model.get_weights()model.get_config() (虽然是方法)。

Useful attributes of class Model are (per Keras documentation): Model有用属性是(根据Keras文档):

  • model.layers : flattened list of the layers comprising the model graph model.layers :组成模型图的层的扁平列表
  • model.inputs : list of input tensors model.inputs :输入张量列表
  • model.outputs : list of output tensors model.outputs :输出张量列表

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 编辑keras模型后,“无”是什么意思? - What does a “None” mean after compilation of keras model? keras模型预测不适合,这意味着什么? - keras model predict without fit, what does it mean? Keras 中的“model.trainable = False”是什么意思? - What does “model.trainable = False” mean in Keras? Keras 中的损失在模型之间的数量级不同意味着什么? - What does it mean for the loss in Keras to be different by orders of magnitude between models? 标准的 Keras 模型输出是什么意思? Keras 中的 epoch 和 loss 是什么? - What does the standard Keras model output mean? What is epoch and loss in Keras? Python 错误“预计最多输入 1 个参数,得到 3 个”是什么意思? - What does the Python error 'imput expected at most 1 arguments, got 3' mean? Python-Noob问题-“提供可选参数之一”是什么意思? - Python - Noob Question - What does it mean “Giving one of the optional arguments”? keras model.fit 输出 - “val_accuracy 从 -inf 提高到 0.29846” - -inf 是什么意思? - keras model.fit output - "val_accuracy improved from -inf to 0.29846" - what does it mean by -inf? (1,) 在 Python 中是什么意思? - What does (1,) mean in Python? python中的&lt;-、、&gt;-、、 &lt;+ 、、 &gt;&gt;是什么意思? - What does `<-`, `>-`, `<+`, `>+` in python mean?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM