【问题标题】:In an input layer, what is the difference between input_dim and the number of nodes on the input layer?在输入层中,input_dim 和输入层上的节点数有什么区别?
【发布时间】:2016-11-20 03:42:12
【问题描述】:

Keras 代码供参考。我的每个输入实例都是一个 200 维向量,我希望输入层上的节点数等于 200。“100”在输入密集层中代表什么?

model = Sequential([
        Dense(100, input_dim=200),
        Activation('sigmoid'),
        Dense(150),
        Activation('sigmoid'),
        Dense(50),
        Activation('softmax'),
    ])

【问题讨论】:

    标签: machine-learning neural-network keras keras-layer


    【解决方案1】:

    “100”表示网络第一个隐藏层中的节点数。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-11-19
      • 2010-09-12
      • 2018-10-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-16
      • 2020-12-02
      相关资源
      最近更新 更多