0

我用 theano 运行机器学习算法。我收到了很多关于 DeprecationWarning 的警告。来自 numpy 包。我想禁用此警告请建议选项。警告性质:fromnumeric.py:932:DeprecationWarning:将ndim> 0的数组转换为索引将导致将来出错

我尝试以下运行配置添加命令行选项 -W ignore 或 -W ignore::DeprecationWarning 但这些都不起作用

或者修复警告解决方案对我来说很好。看起来它已在 theano https://groups.google.com/forum/#!topic/theano-users/Hf7soRrnh8w中修复,但我不知道在哪里可以找到这个更新版本的 theano

我正在使用 Anaconda 发行版 2.0.1 windows 8.1 - 64 位

谢谢

4

1 回答 1

1

请参阅此链接以将 Theano 更新到开发版本。我应该修复:

http://deeplearning.net/software/theano/install.html#bleeding-edge-install-instructions

在简历中,运行这两个命令之一:

pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git

或(如果您只想为当前用户安装它):

pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git --user
于 2014-07-14T14:20:27.470 回答