【发布时间】:2016-06-14 22:23:25
【问题描述】:
我正在尝试使用 MNIST 数据集在神经网络上精确复制 this tutorial。当我将它复制粘贴到我的 Python 编辑器中时,我得到以下异常:
Exception: The first layer in a Sequential model must get an `input_shape` or `batch_input_shape` argument.
所以我尝试使用
指定输入shememodel.add(Convolution2D(32, 1, 3, 3, border_mode='same', input_sheme=(1,28,28)))
但我想我做错了。
有人可以帮忙吗?
【问题讨论】:
标签: python conv-neural-network keras