<?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: Scoring using model from open source node (Python) - VDMML in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-using-model-from-open-source-node-Python-VDMML/m-p/754361#M8798</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/3045"&gt;@andreas_zaras&lt;/a&gt;&amp;nbsp;, are you using SAS Viya 3.5 here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To use the Score Data Node I believe that you need to have an associated score code file. In SAS Viya 3.5 the Open Code node generates a .py file rather than a scoring file. To score the model like you are doing here you could add an open code node afterwards to score the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to view performance of the open model against your analytic partitions in the Pipeline Comparison tab already, as you can feed in the same analytic partition you define when you create the project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get a scoring file generated for your Python model you can add it to model manager using the register_model utility available in the sasctl Python library. There is an example here on Github:&amp;nbsp;&lt;A href="https://github.com/sassoftware/python-sasctl" target="_blank"&gt;https://github.com/sassoftware/python-sasctl&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS Viya 4 you can add a train.py and score.py script to the Open Code node directly in Model Studio which streamlines the process a bit.&lt;/P&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="viya4pythonnode.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61280i71FBD88785F9A2CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="viya4pythonnode.png" alt="viya4pythonnode.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 15:00:48 GMT</pubDate>
    <dc:creator>HarrySnart</dc:creator>
    <dc:date>2021-07-15T15:00:48Z</dc:date>
    <item>
      <title>Scoring using model from open source node (Python) - VDMML</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-using-model-from-open-source-node-Python-VDMML/m-p/753911#M8795</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have developped the pipeline presented in the attached screenshot. A decision tree is developped in Python - Open SOurce Node. Then i add a Score node as a child and i attach a score data set. The node runs and a data set is output but on;y with the input variables (the probabilities and decision variables do not appear e.g. EM_Classification, EM_Event_Probability).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to score i need to write code in the python open source node or i am doing something wrong? The score node facility cannot be used in the case of an open source model?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andreas&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pipeline.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61192iD613ADD489EE23AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pipeline.png" alt="pipeline.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 19:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-using-model-from-open-source-node-Python-VDMML/m-p/753911#M8795</guid>
      <dc:creator>andreas_zaras</dc:creator>
      <dc:date>2021-07-13T19:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Scoring using model from open source node (Python) - VDMML</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-using-model-from-open-source-node-Python-VDMML/m-p/754361#M8798</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/3045"&gt;@andreas_zaras&lt;/a&gt;&amp;nbsp;, are you using SAS Viya 3.5 here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To use the Score Data Node I believe that you need to have an associated score code file. In SAS Viya 3.5 the Open Code node generates a .py file rather than a scoring file. To score the model like you are doing here you could add an open code node afterwards to score the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should be able to view performance of the open model against your analytic partitions in the Pipeline Comparison tab already, as you can feed in the same analytic partition you define when you create the project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get a scoring file generated for your Python model you can add it to model manager using the register_model utility available in the sasctl Python library. There is an example here on Github:&amp;nbsp;&lt;A href="https://github.com/sassoftware/python-sasctl" target="_blank"&gt;https://github.com/sassoftware/python-sasctl&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS Viya 4 you can add a train.py and score.py script to the Open Code node directly in Model Studio which streamlines the process a bit.&lt;/P&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="viya4pythonnode.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/61280i71FBD88785F9A2CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="viya4pythonnode.png" alt="viya4pythonnode.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 15:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-using-model-from-open-source-node-Python-VDMML/m-p/754361#M8798</guid>
      <dc:creator>HarrySnart</dc:creator>
      <dc:date>2021-07-15T15:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Scoring using model from open source node (Python) - VDMML</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Scoring-using-model-from-open-source-node-Python-VDMML/m-p/755117#M8806</link>
      <description>Hi!&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer! I am usingg Viya 3.5. I am able to see performance measures through the model comparison tab.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;&lt;BR /&gt;Andreas</description>
      <pubDate>Mon, 19 Jul 2021 20:13:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Scoring-using-model-from-open-source-node-Python-VDMML/m-p/755117#M8806</guid>
      <dc:creator>andreas_zaras</dc:creator>
      <dc:date>2021-07-19T20:13:04Z</dc:date>
    </item>
  </channel>
</rss>

