2017-03-27 1 views
0

Das ist mein code. warum es nicht funktioniert nichtwarum kann ich nicht mnist datensätze mit scikit lernen lernen in python

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

, wenn ich es in cmd laufen, bekomme ich, dass

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> 

Warum ist es nicht funktionieren und wie ich es machen die Arbeit?

+0

Ich habe es gerade versucht und es scheint kaputt zu sein. Kann mit Hosting-Problemen in Verbindung stehen, ich habe ein 'URLError: '. Öffnen Sie besser ein Problem auf GitHub –

Antwort

0

fetch_mldata Funktion holt Daten von mldata.org, die scheint zu sein.

Verwandte Themen