<?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 How to score a new table using a trained Gradient Boosting Model in SAS Viya UI? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-score-a-new-table-using-a-trained-Gradient-Boosting-Model/m-p/525499#M4985</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS Viya and trying to generate predictions from a trained gradient boosting model in Viya. The model has been trained using pipeline. Now, I need to score a new data set. I am using the "Manage Models" -&amp;gt; "Scoring" -&amp;gt; "New Test" option to score this table. But, I am getting the following errors -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;error: ERROR: There is no session-scope table score_12345 in caslib LIBABC of Cloud Analytic Services.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;error: ERROR: Code file is missing the declaration 'varlist allvars [_all_]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please explain what is happening here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jan 2019 17:32:03 GMT</pubDate>
    <dc:creator>mallikadey</dc:creator>
    <dc:date>2019-01-08T17:32:03Z</dc:date>
    <item>
      <title>How to score a new table using a trained Gradient Boosting Model in SAS Viya UI?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-score-a-new-table-using-a-trained-Gradient-Boosting-Model/m-p/525499#M4985</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS Viya and trying to generate predictions from a trained gradient boosting model in Viya. The model has been trained using pipeline. Now, I need to score a new data set. I am using the "Manage Models" -&amp;gt; "Scoring" -&amp;gt; "New Test" option to score this table. But, I am getting the following errors -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;error: ERROR: There is no session-scope table score_12345 in caslib LIBABC of Cloud Analytic Services.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;error: ERROR: Code file is missing the declaration 'varlist allvars [_all_]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please explain what is happening here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;MD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 17:32:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-score-a-new-table-using-a-trained-Gradient-Boosting-Model/m-p/525499#M4985</guid>
      <dc:creator>mallikadey</dc:creator>
      <dc:date>2019-01-08T17:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to score a new table using a trained Gradient Boosting Model in SAS Viya UI?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-score-a-new-table-using-a-trained-Gradient-Boosting-Model/m-p/528927#M5499</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Hi MD,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Some models in SAS Visual Data Mining and Machine Learning are packaged in a single downloadable DATA step code file. Other models are based on a &lt;STRONG&gt;SAS analytical store&lt;/STRONG&gt; such as the model created by a Gradient Boosting or Forest node. Each analytic store is a binary representation of the state of an analytic procedure after training. This analytic store must also be accompanied by analytic store score code, also referred to as EP score code. These files represent your model and can be imported into your project.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Without knowing the exact steps that replicate your issue, I assume you’ve performed the following steps:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;1)&amp;nbsp;&amp;nbsp;&amp;nbsp; Select &lt;STRONG&gt;Download score code&lt;/STRONG&gt; from the Project Pipeline menu in the &lt;STRONG&gt;Pipeline Comparison&lt;/STRONG&gt; tab &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;2)&amp;nbsp;&amp;nbsp;&amp;nbsp; Save the ZIP file. &amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;3)&amp;nbsp;&amp;nbsp;&amp;nbsp; Import the zip file to your project to define your model in SAS Model Manager.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt; 4)&amp;nbsp;&amp;nbsp;&amp;nbsp; Score a new table using "Manage Models" -&amp;gt; "Scoring" -&amp;gt; "New Test".&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;If my assumption is correct, you are seeing the error most likely because the ZIP file approach requires complete model contents consisting of model input and output metadata, and score code file. Additionally, if an analytical store is a part of the model, then the binary model file needs to be available in the &lt;STRONG&gt;ModelStore&lt;/STRONG&gt; CAS library after a model is registered. Otherwise, you will get an error like what you are observing because this binary model file cannot be found.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Depending on the purpose of scoring, you can consider the following options:&amp;nbsp;·&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;-- If you only want to score a new table, then score within Model Studio.&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;To score holdout data, complete the following steps:&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Select the waterfall icon in the upper right corner of the&amp;nbsp;&lt;SPAN&gt;Pipeline Comparison&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Select&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Score holdout data&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;The Browse Data window appears. Select the data set that contains the holdout data that you want scored.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Click&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;OK&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Model Studio will score the holdout data. To see the results of this process, use the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Data&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;menu below&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Pipeline Comparison&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp;to select&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Holdout&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;-- If your objective is to manage and publish models, then score with SAS Model Manager.&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Click the waterfall icon&amp;nbsp;in the upper right corner of the &lt;STRONG&gt;Pipeline Comparison&lt;/STRONG&gt; tab in the interface of Model Studio and select &lt;STRONG&gt;Register models&lt;/STRONG&gt;. This registers the model in SAS Model Manager. SAS Model Manager is used to store and organize models in a common repository.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Score the new table using "Manage Models" -&amp;gt; "Scoring" -&amp;gt; "New Test".&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Hope this helps.&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;-Ann&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 22:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-score-a-new-table-using-a-trained-Gradient-Boosting-Model/m-p/528927#M5499</guid>
      <dc:creator>AnnKuo</dc:creator>
      <dc:date>2019-01-21T22:31:50Z</dc:date>
    </item>
  </channel>
</rss>

