<?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: How to score with a registered model in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-with-a-registered-model/m-p/926152#M10765</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The Model Repository service is always available, so&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;you can still register models if SAS Model Manager is not licensed&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So far, so good.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You should have a&amp;nbsp;ModelStore CAS library to the /opt/sas/viya/config/data/modelsvr/astore directory.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Don't you see it in the libraries pane after submitting&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;caslib _all_ assign;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's where &lt;STRONG&gt;access to registered models&lt;/STRONG&gt; is discussed :&lt;/P&gt;
&lt;DIV class="MainNav_titleElem__2sPH3"&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;SAS® Viya® 3.5 Administration&lt;/DIV&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;Models -- Access to Models&lt;/DIV&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;&lt;A href="https://go.documentation.sas.com/doc/en/calcdc/3.5/calmodels/n1hl4mghwofk6qn1mdih1aezgbtl.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/calcdc/3.5/calmodels/n1hl4mghwofk6qn1mdih1aezgbtl.htm&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;I can have a more detailed look on Monday or Tuesday.&lt;/DIV&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;I think &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/260759"&gt;@SophiaRowland&lt;/a&gt;&amp;nbsp;can help you out as well.&lt;/DIV&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Sat, 27 Apr 2024 13:16:02 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2024-04-27T13:16:02Z</dc:date>
    <item>
      <title>How to score with a registered model</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-with-a-registered-model/m-p/925352#M10764</link>
      <description>&lt;P&gt;I have a decision tree model from Visual Analytics.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know how to score it by exporting the model and running a data step with the %include statement referencing to the data step alike scoring code from VA. It works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But there is the option to register the model as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can see my model, but I'm struggling to use it for scoring in SAS Studio.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not have model manager licenced.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are my unsuccessful attempts:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Load the analytic store (ASTORE) file */
proc astore; libname='/modelRepository/models/' store='Decision_tree_concept_1';
run;

/* Score new data using the loaded ASTORE */
proc astore; 
score data=MKT.ESTADO_DECISION out=MKT.ESTADO_DECISION_sc;
   score rstore='/modelRepository/models/d6332eab-c230-42fa-a75f-dcee1122d25d';
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="png1.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95769iBD6CAA68C13C1E62/image-size/large?v=v2&amp;amp;px=999" role="button" title="png1.png" alt="png1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 10:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-with-a-registered-model/m-p/925352#M10764</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2024-04-23T10:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to score with a registered model</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-with-a-registered-model/m-p/926152#M10765</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The Model Repository service is always available, so&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;you can still register models if SAS Model Manager is not licensed&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So far, so good.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You should have a&amp;nbsp;ModelStore CAS library to the /opt/sas/viya/config/data/modelsvr/astore directory.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Don't you see it in the libraries pane after submitting&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;caslib _all_ assign;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's where &lt;STRONG&gt;access to registered models&lt;/STRONG&gt; is discussed :&lt;/P&gt;
&lt;DIV class="MainNav_titleElem__2sPH3"&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;SAS® Viya® 3.5 Administration&lt;/DIV&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;Models -- Access to Models&lt;/DIV&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;&lt;A href="https://go.documentation.sas.com/doc/en/calcdc/3.5/calmodels/n1hl4mghwofk6qn1mdih1aezgbtl.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/calcdc/3.5/calmodels/n1hl4mghwofk6qn1mdih1aezgbtl.htm&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;I can have a more detailed look on Monday or Tuesday.&lt;/DIV&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;I think &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/260759"&gt;@SophiaRowland&lt;/a&gt;&amp;nbsp;can help you out as well.&lt;/DIV&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="MainNav_title__3NWOu nav-item"&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 27 Apr 2024 13:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-score-with-a-registered-model/m-p/926152#M10765</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-04-27T13:16:02Z</dc:date>
    </item>
  </channel>
</rss>

