<p dir="auto">Issue 1) <code class="notranslate">y</code> float values get truncated.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.svm import SVC
clf = SVC()
X = [[10], [20]]
y = [3.3, 6.6]
clf = clf.fit(X, y)
clf.predict([10]) # outputs array([ 3.])"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">svm</span> <span class="pl-k">import</span> <span class="pl-v">SVC</span>
<span class="pl-s1">clf</span> <span class="pl-c1">=</span> <span class="pl-v">SVC</span>()
<span class="pl-v">X</span> <span class="pl-c1">=</span> [[<span class="pl-c1">10</span>], [<span class="pl-c1">20</span>]]
<span class="pl-s1">y</span> <span class="pl-c1">=</span> [<span class="pl-c1">3.3</span>, <span class="pl-c1">6.6</span>]
<span class="pl-s1">clf</span> <span class="pl-c1">=</span> <span class="pl-s1">clf</span>.<span class="pl-en">fit</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>)
<span class="pl-s1">clf</span>.<span class="pl-en">predict</span>([<span class="pl-c1">10</span>]) <span class="pl-c"># outputs array([ 3.])</span></pre></div>
<p dir="auto">It predicts a <code class="notranslate">3.</code> instead of a <code class="notranslate">3.3</code>.</p>
<p dir="auto">Issue 2) Output types are float arrays.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.svm import SVC
clf = SVC()
X = [[10], [20]]
y = [4, 5]
clf = clf.fit(X, y)
clf.predict([10]) # outputs array([4.])"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">svm</span> <span class="pl-k">import</span> <span class="pl-v">SVC</span>
<span class="pl-s1">clf</span> <span class="pl-c1">=</span> <span class="pl-v">SVC</span>()
<span class="pl-v">X</span> <span class="pl-c1">=</span> [[<span class="pl-c1">10</span>], [<span class="pl-c1">20</span>]]
<span class="pl-s1">y</span> <span class="pl-c1">=</span> [<span class="pl-c1">4</span>, <span class="pl-c1">5</span>]
<span class="pl-s1">clf</span> <span class="pl-c1">=</span> <span class="pl-s1">clf</span>.<span class="pl-en">fit</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>)
<span class="pl-s1">clf</span>.<span class="pl-en">predict</span>([<span class="pl-c1">10</span>]) <span class="pl-c"># outputs array([4.])</span></pre></div>
<p dir="auto">The output is a <code class="notranslate">float</code> array when it could be typed <code class="notranslate">int</code> maybe.</p>
<p dir="auto">Issue 3) Targets can't be strings.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.svm import SVC
clf = SVC()
X = [[10], [20]]
y = [&quot;a&quot;,&quot;b&quot;]
clf = clf.fit(X, y)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
&lt;ipython-input-247-fa0538af1002&gt; in &lt;module&gt;()
----&gt; 1 clf = clf.fit(X, y)

/usr/lib/python2.7/site-packages/sklearn/svm/base.pyc in fit(self, X, y, sample_weight)
    160 
    161         X = atleast2d_or_csr(X, dtype=np.float64, order='C')
--&gt; 162         y = np.asarray(y, dtype=np.float64, order='C')
    163 
    164         if self.impl != &quot;one_class&quot; and len(np.unique(y)) &lt; 2:

/usr/lib/python2.7/site-packages/numpy/core/numeric.pyc in asarray(a, dtype, order)
    322 
    323     &quot;&quot;&quot;
--&gt; 324     return array(a, dtype, copy=False, order=order)
    325 
    326 def asanyarray(a, dtype=None, order=None):

ValueError: could not convert string to float: a"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">svm</span> <span class="pl-k">import</span> <span class="pl-v">SVC</span>
<span class="pl-s1">clf</span> <span class="pl-c1">=</span> <span class="pl-v">SVC</span>()
<span class="pl-v">X</span> <span class="pl-c1">=</span> [[<span class="pl-c1">10</span>], [<span class="pl-c1">20</span>]]
<span class="pl-s1">y</span> <span class="pl-c1">=</span> [<span class="pl-s">"a"</span>,<span class="pl-s">"b"</span>]
<span class="pl-s1">clf</span> <span class="pl-c1">=</span> <span class="pl-s1">clf</span>.<span class="pl-en">fit</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>)
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
<span class="pl-v">ValueError</span>                                <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>)
<span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">247</span><span class="pl-c1">-</span><span class="pl-s1">fa0538af1002</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>()
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">1</span> <span class="pl-s1">clf</span> <span class="pl-c1">=</span> <span class="pl-s1">clf</span>.<span class="pl-en">fit</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>)

<span class="pl-c1">/</span><span class="pl-s1">usr</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">sklearn</span><span class="pl-c1">/</span><span class="pl-s1">svm</span><span class="pl-c1">/</span><span class="pl-s1">base</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">fit</span>(<span class="pl-s1">self</span>, <span class="pl-v">X</span>, <span class="pl-s1">y</span>, <span class="pl-s1">sample_weight</span>)
    <span class="pl-c1">160</span> 
    <span class="pl-c1">161</span>         <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-en">atleast2d_or_csr</span>(<span class="pl-v">X</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float64</span>, <span class="pl-s1">order</span><span class="pl-c1">=</span><span class="pl-s">'C'</span>)
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">162</span>         <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">asarray</span>(<span class="pl-s1">y</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float64</span>, <span class="pl-s1">order</span><span class="pl-c1">=</span><span class="pl-s">'C'</span>)
    <span class="pl-c1">163</span> 
    <span class="pl-c1">164</span>         <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">impl</span> <span class="pl-c1">!=</span> <span class="pl-s">"one_class"</span> <span class="pl-c1">and</span> <span class="pl-en">len</span>(<span class="pl-s1">np</span>.<span class="pl-en">unique</span>(<span class="pl-s1">y</span>)) <span class="pl-c1">&lt;</span> <span class="pl-c1">2</span>:

<span class="pl-c1">/</span><span class="pl-s1">usr</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">numpy</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">numeric</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">asarray</span>(<span class="pl-s1">a</span>, <span class="pl-s1">dtype</span>, <span class="pl-s1">order</span>)
    <span class="pl-c1">322</span> 
    <span class="pl-c1">323</span>     """
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">324</span>     <span class="pl-s1">return</span> <span class="pl-en">array</span>(<span class="pl-s1">a</span>, <span class="pl-s1">dtype</span>, <span class="pl-s1">copy</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">order</span><span class="pl-c1">=</span><span class="pl-s1">order</span>)
    <span class="pl-c1">325</span> 
    <span class="pl-c1">326</span> <span class="pl-k">def</span> <span class="pl-en">asanyarray</span>(<span class="pl-s1">a</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">order</span><span class="pl-c1">=</span><span class="pl-c1">None</span>):

<span class="pl-v">ValueError</span>: <span class="pl-s1">could</span> <span class="pl-c1">not</span> <span class="pl-s1">convert</span> <span class="pl-s1">string</span> <span class="pl-s1">to</span> <span class="pl-s1">float</span>: <span class="pl-s1">a</span></pre></div>
<p dir="auto">Open an issue for the latest Circle failure on master.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Unexpected failing examples:
/home/circleci/project/examples/applications/plot_tomography_l1_reconstruction.py failed leaving traceback:
Traceback (most recent call last):
  File &quot;/home/circleci/project/examples/applications/plot_tomography_l1_reconstruction.py&quot;, line 115, in &lt;module&gt;
    proj_operator = build_projection_operator(l, l / 7.)
  File &quot;/home/circleci/project/examples/applications/plot_tomography_l1_reconstruction.py&quot;, line 95, in build_projection_operator
    proj_operator = sparse.coo_matrix((weights, (camera_inds, data_inds)))
  File &quot;/home/circleci/miniconda/envs/testenv/lib/python3.6/site-packages/scipy/sparse/coo.py&quot;, line 150, in __init__
    self._shape = check_shape((M, N))
  File &quot;/home/circleci/miniconda/envs/testenv/lib/python3.6/site-packages/scipy/sparse/sputils.py&quot;, line 281, in check_shape
    new_shape = tuple(operator.index(arg) for arg in args)
  File &quot;/home/circleci/miniconda/envs/testenv/lib/python3.6/site-packages/scipy/sparse/sputils.py&quot;, line 281, in &lt;genexpr&gt;
    new_shape = tuple(operator.index(arg) for arg in args)
TypeError: 'numpy.float64' object cannot be interpreted as an integer"><pre class="notranslate"><code class="notranslate">Unexpected failing examples:
/home/circleci/project/examples/applications/plot_tomography_l1_reconstruction.py failed leaving traceback:
Traceback (most recent call last):
  File "/home/circleci/project/examples/applications/plot_tomography_l1_reconstruction.py", line 115, in &lt;module&gt;
    proj_operator = build_projection_operator(l, l / 7.)
  File "/home/circleci/project/examples/applications/plot_tomography_l1_reconstruction.py", line 95, in build_projection_operator
    proj_operator = sparse.coo_matrix((weights, (camera_inds, data_inds)))
  File "/home/circleci/miniconda/envs/testenv/lib/python3.6/site-packages/scipy/sparse/coo.py", line 150, in __init__
    self._shape = check_shape((M, N))
  File "/home/circleci/miniconda/envs/testenv/lib/python3.6/site-packages/scipy/sparse/sputils.py", line 281, in check_shape
    new_shape = tuple(operator.index(arg) for arg in args)
  File "/home/circleci/miniconda/envs/testenv/lib/python3.6/site-packages/scipy/sparse/sputils.py", line 281, in &lt;genexpr&gt;
    new_shape = tuple(operator.index(arg) for arg in args)
TypeError: 'numpy.float64' object cannot be interpreted as an integer
</code></pre></div>