<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi,  in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/statsmodels-LinearRegression-bug/m-p/1176493#M1307</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you for bringing the issue to our attention. We have reproduced the problem. As a work-around you could either use&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;model.predict([[5]])&lt;/PRE&gt;

&lt;P&gt;or disable optimizations by doing&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;from sklearn.daal4sklearn import dispatcher
dispatcher.disable()&lt;/PRE&gt;

&lt;P&gt;The fix will incorporated in the next update of the package.&lt;/P&gt;</description>
    <pubDate>Sat, 02 Sep 2017 19:23:38 GMT</pubDate>
    <dc:creator>Oleksandr_P_Intel</dc:creator>
    <dc:date>2017-09-02T19:23:38Z</dc:date>
    <item>
      <title>statsmodels LinearRegression bug</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/statsmodels-LinearRegression-bug/m-p/1176492#M1306</link>
      <description>&lt;P&gt;I realise whenever i run linearRegression with intel python distrbution i get the following error&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;
  File "/home/dc/intel/intelpython3/lib/python3.5/site-packages/sklearn/daal4sklearn/linear.py", line 146, in predict
    good_shape_for_daal = True if X.ndim == 1 else True if X.shape[0] &amp;gt; X.shape[1] else False

IndexError: tuple index out of range&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;i can simulate this error with the following code&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif; font-size: 1em;"&gt;from sklearn.linear_model import LinearRegression&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;y=[2,5,10,20,30,60]
x=np.arange(1,7)
model.fit(x[:,np.newaxis],y)
y_predict=model.predict(5)

&lt;/PRE&gt;

&lt;P&gt;this would work in any other python distribution withh normal sklearn&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2017 17:30:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/statsmodels-LinearRegression-bug/m-p/1176492#M1306</guid>
      <dc:creator>des_c_</dc:creator>
      <dc:date>2017-09-02T17:30:37Z</dc:date>
    </item>
    <item>
      <title>Hi, </title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/statsmodels-LinearRegression-bug/m-p/1176493#M1307</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you for bringing the issue to our attention. We have reproduced the problem. As a work-around you could either use&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;model.predict([[5]])&lt;/PRE&gt;

&lt;P&gt;or disable optimizations by doing&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:python;"&gt;from sklearn.daal4sklearn import dispatcher
dispatcher.disable()&lt;/PRE&gt;

&lt;P&gt;The fix will incorporated in the next update of the package.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2017 19:23:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/statsmodels-LinearRegression-bug/m-p/1176493#M1307</guid>
      <dc:creator>Oleksandr_P_Intel</dc:creator>
      <dc:date>2017-09-02T19:23:38Z</dc:date>
    </item>
  </channel>
</rss>

