<?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: Import PMML model to Model Manager in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Import-PMML-model-to-Model-Manager/m-p/764555#M1098</link>
    <description>&lt;P&gt;We faced a similar issue and found out that SAS Viya only supports PMML v4.2, not PMML v4.4. The following community link discussed how to create a properly formatted PMML 4.2 for R, though you might find that PMML 4.2 might not support the model you're trying to deploy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Nordic-Users-Group/Juletip-14-Importing-R-model-to-SAS-Viya-with-PMML/td-p/521412" target="_blank"&gt;https://communities.sas.com/t5/SAS-Nordic-Users-Group/Juletip-14-Importing-R-model-to-SAS-Viya-with-PMML/td-p/521412&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this doesn't work, your options would be to&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;recreate your model using SAS code and deploy that&lt;/LI&gt;&lt;LI&gt;publish your R package to a supported container service&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;more details on the PMML implementation are in the SAS Model Manager documentation&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/mdlmgrug/15.3/p0t1l5scv87yoqn1m13rzx6yy45g.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/mdlmgrug/15.3/p0t1l5scv87yoqn1m13rzx6yy45g.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best of luck!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Aug 2021 19:47:57 GMT</pubDate>
    <dc:creator>GregDolland-EDC</dc:creator>
    <dc:date>2021-08-27T19:47:57Z</dc:date>
    <item>
      <title>Import PMML model to Model Manager</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Import-PMML-model-to-Model-Manager/m-p/764262#M1095</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi there, I'm working with migration from R to SAS, the company currently has a model in R which has written with the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;h2o package.&lt;/SPAN&gt;&lt;/STRONG&gt; I know for experience that Model Manager accepts &lt;STRONG&gt;PMML&lt;/STRONG&gt; models so I&lt;SPAN&gt;&amp;nbsp;already did the conversion from &lt;STRONG&gt;MOJO&lt;/STRONG&gt;(type of file that h2o's model export) to &lt;STRONG&gt;PMML.&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I imported to SAS I had the following message error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="valengvz_0-1629993638593.png" style="width: 724px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63057i8B7044F2FAB7B93E/image-dimensions/724x172?v=v2" width="724" height="172" role="button" title="valengvz_0-1629993638593.png" alt="valengvz_0-1629993638593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how the PMML file looks like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WhatsApp Image 2021-08-26 at 11.02.45 AM.jpeg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63061i1B35517DF6B09F76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WhatsApp Image 2021-08-26 at 11.02.45 AM.jpeg" alt="WhatsApp Image 2021-08-26 at 11.02.45 AM.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&amp;gt;
&amp;lt;PMML xmlns="http://www.dmg.org/PMML-4_4" xmlns:data="http://jpmml.org/jpmml-model/InlineTable" version="4.4"&amp;gt;&lt;/PRE&gt;&lt;P&gt;I don't know how can I fix this error because when I tried to load the PMML model to python the model works fine and I even made predictions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does someone know how can I deal with this error or if there is another alternative to work with h2o models from R in SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 16:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Import-PMML-model-to-Model-Manager/m-p/764262#M1095</guid>
      <dc:creator>valengvz</dc:creator>
      <dc:date>2021-08-26T16:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Import PMML model to Model Manager</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Import-PMML-model-to-Model-Manager/m-p/764555#M1098</link>
      <description>&lt;P&gt;We faced a similar issue and found out that SAS Viya only supports PMML v4.2, not PMML v4.4. The following community link discussed how to create a properly formatted PMML 4.2 for R, though you might find that PMML 4.2 might not support the model you're trying to deploy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Nordic-Users-Group/Juletip-14-Importing-R-model-to-SAS-Viya-with-PMML/td-p/521412" target="_blank"&gt;https://communities.sas.com/t5/SAS-Nordic-Users-Group/Juletip-14-Importing-R-model-to-SAS-Viya-with-PMML/td-p/521412&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this doesn't work, your options would be to&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;recreate your model using SAS code and deploy that&lt;/LI&gt;&lt;LI&gt;publish your R package to a supported container service&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;more details on the PMML implementation are in the SAS Model Manager documentation&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/mdlmgrug/15.3/p0t1l5scv87yoqn1m13rzx6yy45g.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/mdlmgrug/15.3/p0t1l5scv87yoqn1m13rzx6yy45g.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best of luck!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 19:47:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Import-PMML-model-to-Model-Manager/m-p/764555#M1098</guid>
      <dc:creator>GregDolland-EDC</dc:creator>
      <dc:date>2021-08-27T19:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Import PMML model to Model Manager</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Import-PMML-model-to-Model-Manager/m-p/764560#M1099</link>
      <description>&lt;P&gt;I already did that, that works with other models but not with gradient boosting or random forest. I does SAS support ensemble models via pmml?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 20:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Import-PMML-model-to-Model-Manager/m-p/764560#M1099</guid>
      <dc:creator>valengvz</dc:creator>
      <dc:date>2021-08-27T20:03:46Z</dc:date>
    </item>
  </channel>
</rss>

