<?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 Python execution in parallel in Micro Analytics Service in Decisioning</title>
    <link>https://communities.sas.com/t5/Decisioning/Python-execution-in-parallel-in-Micro-Analytics-Service/m-p/923037#M90</link>
    <description>&lt;P&gt;I am trying to parallelize one process in Python which is part of a SAS Intelligent decision Tool (SAS Viya 3.5). The python code file is part of a decision flow and the calculation I am trying to run in parallel is a calculation that includes numpy arrays.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to using concurrent.futures and its predecessor multiprocess. Both libraries require the script being executed to be directly executed in the interpreter (__name__ == '__main__') , which (based on what I've tried so far) is not possible as the script is nested in a decision flow object.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Has anyone any recommendation on how to parallelize python code within a decision flow running in Micro Analytics Service (MAS)? If not, are you aware of any other way to increase the performance of calculations with numpy arrays?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 18:57:35 GMT</pubDate>
    <dc:creator>sore_dude_1217</dc:creator>
    <dc:date>2024-04-04T18:57:35Z</dc:date>
    <item>
      <title>Python execution in parallel in Micro Analytics Service</title>
      <link>https://communities.sas.com/t5/Decisioning/Python-execution-in-parallel-in-Micro-Analytics-Service/m-p/923037#M90</link>
      <description>&lt;P&gt;I am trying to parallelize one process in Python which is part of a SAS Intelligent decision Tool (SAS Viya 3.5). The python code file is part of a decision flow and the calculation I am trying to run in parallel is a calculation that includes numpy arrays.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to using concurrent.futures and its predecessor multiprocess. Both libraries require the script being executed to be directly executed in the interpreter (__name__ == '__main__') , which (based on what I've tried so far) is not possible as the script is nested in a decision flow object.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Has anyone any recommendation on how to parallelize python code within a decision flow running in Micro Analytics Service (MAS)? If not, are you aware of any other way to increase the performance of calculations with numpy arrays?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 18:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Decisioning/Python-execution-in-parallel-in-Micro-Analytics-Service/m-p/923037#M90</guid>
      <dc:creator>sore_dude_1217</dc:creator>
      <dc:date>2024-04-04T18:57:35Z</dc:date>
    </item>
  </channel>
</rss>

