2017-03-27 4 views
0

이것은 내 코드입니다. 왜 cmd를 실행하는 경우는,scikit을 사용하여 mnist 데이터 세트를 얻을 수없는 이유는 무엇입니까?

from sklearn.datasets import fetch_mldata 
mnist = fetch_mldata('MNIST original', data_home='./data') 

작동하지 나는

Traceback (most recent call last): 
    File "mnistTest.py", line 7, in <module> 
    mnist = fetch_mldata('MNIST original', data_home='./data') 
    File "C:\Python27\lib\site-packages\sklearn\datasets\mldata.py", line 142, in 
fetch_mldata 
    mldata_url = urlopen(urlname) 
    File "C:\Python27\lib\urllib2.py", line 154, in urlopen 
    return opener.open(url, data, timeout) 
    File "C:\Python27\lib\urllib2.py", line 429, in open 
    response = self._open(req, data) 
    File "C:\Python27\lib\urllib2.py", line 447, in _open 
    '_open', req) 
    File "C:\Python27\lib\urllib2.py", line 407, in _call_chain 
    result = func(*args) 
    File "C:\Python27\lib\urllib2.py", line 1228, in http_open 
    return self.do_open(httplib.HTTPConnection, req) 
    File "C:\Python27\lib\urllib2.py", line 1198, in do_open 
    raise URLError(err) 
urllib2.URLError: <urlopen error [Errno 10060] A connection attempt failed becau 
se the connected party did not properly respond after a period of time, or estab 
lished connection failed because connected host has failed to respond> 

가 왜 작동하지 않을 것을 얻고 어떻게 그것을 작동하지입니까?

+0

방금 ​​해 보았는데 깨진 것 같습니다. 호스팅 문제와 관련된 것일 수 있습니다. URLError : 이 발생했습니다. github에 대한 문제 개선 –

답변

0

fetch_mldata 기능이 작동하지 않는 것으로 보이는 mldata.org의 데이터를 가져옵니다.