keras 示例类型错误

keras example Type Error

我在我的Win64系统上安装了WinPython和Keras 0.1.2,然后我开始运行Keras源代码floder中提供的例子,但是出现了很多错误让我很沮丧- -!

有人帮助我,感谢任何提示。

我尝试运行'mnist_mlp.py',但是在blow行出现错误:

    model.add(Dense(128, input_shape=(784,)))
    TypeError:__init__() got an unexpected keyword argument 'input_shape'

然后我在 http://keras.io/examples/ 上找到示例 当我 运行 下面的行时,我仍然遇到一些错误。

    model.add(Dense(20, 64, init='uniform'))
    TypeError:__init__() got multiple values for keyword argument 'init'

Keras Error

例子http://keras.io/examples/ have not been updated after the recent API changes https://groups.google.com/forum/#!topic/keras-users/iWVrWpR_eaQ

确保您安装了最新版本的 Keras:

sudo pip install git+git://github.com/fchollet/keras.git --upgrade

并使用来自同一存储库的更新示例https://github.com/fchollet/keras/tree/master/examples

截至 11 月 19 日,最新版本的 Keras 0.2.0 不是您使用的 pip install。您需要从 https://pypi.python.org/pypi/Keras 下载它。解压文件后,运行 python setup.py install