<?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 Re:DAAL model created from XGBoost model doesn't match in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/DAAL-model-created-from-XGBoost-model-doesn-t-match/m-p/1364257#M1817</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jaideep&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 28 Feb 2022 07:03:58 GMT</pubDate>
    <dc:creator>JaideepK_Intel</dc:creator>
    <dc:date>2022-02-28T07:03:58Z</dc:date>
    <item>
      <title>DAAL model created from XGBoost model doesn't match</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/DAAL-model-created-from-XGBoost-model-doesn-t-match/m-p/1360792#M1802</link>
      <description>&lt;P&gt;I trained an XGBoost model with default hyper-parameters on a trivial data set (see attached code) and then used&lt;/P&gt;
&lt;P&gt;daal4py.get_gbt_model_from_xgboost&lt;/P&gt;
&lt;P&gt;to create a daal model.&lt;/P&gt;
&lt;P&gt;My XGBoost model worked fine but the daal model was useless!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="420"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="64"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="109"&gt;y_train&lt;/TD&gt;
&lt;TD width="113"&gt;xgb - y_train&lt;/TD&gt;
&lt;TD width="134"&gt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
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea what is wrong with the (short) attached code (or the environment)?&lt;/P&gt;
&lt;P&gt;Steps to reproduce:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Install the&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/developer/articles/technical/using-intel-distribution-for-python-with-anaconda.html" target="_blank" rel="noopener"&gt;Intel Distribution for Python&lt;/A&gt;&amp;nbsp; on windows10.&lt;/LI&gt;
&lt;LI&gt;Install the&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/installation-guide-for-intel-oneapi-toolkits-windows/top/installation/install-using-package-managers/conda.html#conda" target="_blank" rel="noopener"&gt;Intel® oneAPI Data Analytics Library (oneDAL)&lt;/A&gt;&amp;nbsp;toolkit.&lt;/LI&gt;
&lt;LI&gt;conda install xgboost&lt;/LI&gt;
&lt;LI&gt;Run the attached (short) python script&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 16 Feb 2022 06:57:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/DAAL-model-created-from-XGBoost-model-doesn-t-match/m-p/1360792#M1802</guid>
      <dc:creator>DK0</dc:creator>
      <dc:date>2022-02-16T06:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: DAAL model created from XGBoost model doesn't match</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/DAAL-model-created-from-XGBoost-model-doesn-t-match/m-p/1360814#M1803</link>
      <description>&lt;P&gt;Solved!&lt;BR /&gt;&lt;BR /&gt;It turns out that the DAAL model uses a permutation of the features. If I train XGBoost on ["X1", "X2"] I need to feed the DAAL model ["X2", "X1"]. I figured it out after coming across&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/39335051/xgboost-load-model-in-c-python-c-prediction-scores-mismatch" target="_blank" rel="noopener"&gt;this thread&lt;/A&gt;&amp;nbsp;which also suggests:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Additionally, calling .dump_model() on both your Python and C++ model objects will yield the same Decision Trees, but the Python one will have all the feature names and the C++ one will likely have f0, f1, f2, .... You can compare these two to get your actual column ordering, and then your predictions will match across languages(Not entirely, b/c of rounding).&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 08:10:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/DAAL-model-created-from-XGBoost-model-doesn-t-match/m-p/1360814#M1803</guid>
      <dc:creator>DK0</dc:creator>
      <dc:date>2022-02-16T08:10:44Z</dc:date>
    </item>
    <item>
      <title>Re:DAAL model created from XGBoost model doesn't match</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/DAAL-model-created-from-XGBoost-model-doesn-t-match/m-p/1360940#M1805</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;Glad to know that your issue is resolved. Thanks for sharing the solution with us. Can we close this case?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jaideep&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Feb 2022 17:18:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/DAAL-model-created-from-XGBoost-model-doesn-t-match/m-p/1360940#M1805</guid>
      <dc:creator>JaideepK_Intel</dc:creator>
      <dc:date>2022-02-16T17:18:14Z</dc:date>
    </item>
    <item>
      <title>Re:DAAL model created from XGBoost model doesn't match</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/DAAL-model-created-from-XGBoost-model-doesn-t-match/m-p/1364257#M1817</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jaideep&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Feb 2022 07:03:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/DAAL-model-created-from-XGBoost-model-doesn-t-match/m-p/1364257#M1817</guid>
      <dc:creator>JaideepK_Intel</dc:creator>
      <dc:date>2022-02-28T07:03:58Z</dc:date>
    </item>
  </channel>
</rss>

