<p dir="auto">I couldn't figure out to add support for arbitrary class labels to the SVMs and add a <code class="notranslate">classes_</code> attribute.<br>
I'm moving to other stuff for the moment, it would be great if someone found some time for this.</p>
<p dir="auto">The trouble comes with <code class="notranslate">class_weight</code> and regression. I think it would be good to add a <code class="notranslate">LabelEncoder</code> somewhere to take care of the encoding of the <code class="notranslate">class_weights</code>. But apparently the implementation also requires a class-weights on the python side in the regression case. And the <code class="notranslate">LabelEncoder</code> should obviously not be used in the SVR.</p>
<p dir="auto">This is doable but I couldn't make it pretty so I just left it :-/</p>
<p dir="auto"><code class="notranslate">from sklearn.datasets import fetch_mldata</code><br>
<code class="notranslate">mnist = fetch_mldata('MNIST original', data_home='./data')</code></p>
<p dir="auto">when I use this, it not working and in cmd show</p>
<p dir="auto"><code class="notranslate">Traceback (most recent call last): File "mnistTest.py", line 7, in &lt;module&gt; 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: &lt;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&gt;</code></p>