<?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 Scoring new data with proc astore and model from MBANALYSIS in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-new-data-with-proc-astore-and-model-from-MBANALYSIS/m-p/749460#M8760</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I am trying to score customer's basket from the ASSOCS dataset with proc astore. The binary scoring model has been generated using Market Basket Analysis task in SAS Studio, which has also provided me with 130 association rules.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (3).png" style="width: 900px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60603iB522DAFD98FA9259/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (3).png" alt="image (3).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have then created a sample input dataset containing 2 customers (each with 7 products copied from the original dataset) to run through the scoring model on SAS Viya. However, I am struggling to intepret the results shown in the images below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (2).png" style="width: 900px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60602iAC5167FF86AF6930/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (2).png" alt="image (2).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (1).png" style="width: 900px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60605i0C71FA2F2612874F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (1).png" alt="image (1).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The scoring model seems to list all indexes of the association rules as columns and assign the "rule_id" column values from rules set in to them. The values are arranged in increasing order and at some point switch to 0's only (image 2). What I would expect is simply a row with cutomer_id and a single rule_id or item with highest probabilty of occuring among the items in the basket.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on intepretation or how to make use of the scoring model would be highly appreciated! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 10:31:23 GMT</pubDate>
    <dc:creator>piecze</dc:creator>
    <dc:date>2021-06-22T10:31:23Z</dc:date>
    <item>
      <title>Scoring new data with proc astore and model from MBANALYSIS</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-new-data-with-proc-astore-and-model-from-MBANALYSIS/m-p/749460#M8760</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I am trying to score customer's basket from the ASSOCS dataset with proc astore. The binary scoring model has been generated using Market Basket Analysis task in SAS Studio, which has also provided me with 130 association rules.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (3).png" style="width: 900px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60603iB522DAFD98FA9259/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (3).png" alt="image (3).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have then created a sample input dataset containing 2 customers (each with 7 products copied from the original dataset) to run through the scoring model on SAS Viya. However, I am struggling to intepret the results shown in the images below.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (2).png" style="width: 900px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60602iAC5167FF86AF6930/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (2).png" alt="image (2).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (1).png" style="width: 900px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/60605i0C71FA2F2612874F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (1).png" alt="image (1).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The scoring model seems to list all indexes of the association rules as columns and assign the "rule_id" column values from rules set in to them. The values are arranged in increasing order and at some point switch to 0's only (image 2). What I would expect is simply a row with cutomer_id and a single rule_id or item with highest probabilty of occuring among the items in the basket.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help on intepretation or how to make use of the scoring model would be highly appreciated! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 10:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-new-data-with-proc-astore-and-model-from-MBANALYSIS/m-p/749460#M8760</guid>
      <dc:creator>piecze</dc:creator>
      <dc:date>2021-06-22T10:31:23Z</dc:date>
    </item>
  </channel>
</rss>

