使用keras

时间:2016-06-02 15:49:42

标签: python python-2.7 theano keras theano-cuda

我在我的机器上重新安装了新的ubuntu 14:04然后我开始收到此错误,而在旧安装中,程序运行完美,没有任何恼人的错误。请帮忙。 顺便说一下,我在cant load mnist dataset in keras找到了问题,但它看起来有不同的错误,我的工作没有任何问题。

Using Theano backend.
Using gpu device 0: GeForce GTX TITAN X (CNMeM is disabled, cuDNN 5005)
Downloading data from https://s3.amazonaws.com/img-datasets/mnist.pkl.gz
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "mnist_cnnFORTESTING.py", line 9, in <module>
execfile("file.py")
File "file.py", line 28, in <module>
(X_train, y_train), (X_test, y_test) = mnist.load_data()
File "/home/sal/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/keras/datasets/mnist.py", line 9, in load_data
path = get_file(path, origin="https://s3.amazonaws.com/img-datasets/mnist.pkl.gz")
File "/home/sal/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/keras/utils/data_utils.py", line 70, in get_file
raise Exception(error_msg.format(origin, e.errno, e.reason))
Exception: URL fetch failure on https://s3.amazonaws.com/img-datasets/mnist.pkl.gz: None -- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify   failed (_ssl.c:590)

1 个答案:

答案 0 :(得分:2)

哇我找到了答案,只需使用

cg.setMaxIterations(int)

我在@ Dilettant的线索中找到了以下链接中的答案谢谢 https://support.enthought.com/hc/en-us/articles/204646264-Linux-non-RHEL-Python-code-fails-to-connect-to-https-with-certificate-errors