<?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: extract rules from random forest model in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/extract-rules-from-random-forest-model/m-p/747485#M8725</link>
    <description>&lt;P&gt;Thanks for the suggesting, below is the code. I'm using SASPY which uses thePROC HPFOREST&amp;nbsp;&lt;/P&gt;&lt;P&gt;The saved model is the rf.bin binary file. The goal is to extract the rules from the rf.bin.Just like in decision tree we can&amp;nbsp;WHOLETREEPLOT for&amp;nbsp;&amp;nbsp;HPSPLIT .&lt;/P&gt;&lt;PRE&gt;hpforest_model = ml.hpforest(data=hmeq, 
                             input=var_inputs, 
                             target="BAD /level = binary",
                             score = "out = work.forest_score",
                             save = "rf.bin",
                             id = "_PartInd_",
                             partition="rolevar=_partind_(TRAIN='1' VALIDATE='0');")&lt;/PRE&gt;</description>
    <pubDate>Fri, 11 Jun 2021 21:01:55 GMT</pubDate>
    <dc:creator>stellarr</dc:creator>
    <dc:date>2021-06-11T21:01:55Z</dc:date>
    <item>
      <title>extract rules from random forest model</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/extract-rules-from-random-forest-model/m-p/747400#M8721</link>
      <description>&lt;P&gt;I have a trained model with hpforest proceduce and saved it as a binary file.&lt;BR /&gt;Is it possible to extract the rules of the model ?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 16:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/extract-rules-from-random-forest-model/m-p/747400#M8721</guid>
      <dc:creator>stellarr</dc:creator>
      <dc:date>2021-06-11T16:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: extract rules from random forest model</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/extract-rules-from-random-forest-model/m-p/747479#M8724</link>
      <description>&lt;P&gt;It might help someone that knows more about this topic to show the code that created your model and how you saved the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes different options limit what may be stored. So if you have used such that person that understands the topic better than I may suggest changes to the code to rebuild the model in a way that will allow you to do what you request.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 20:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/extract-rules-from-random-forest-model/m-p/747479#M8724</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-11T20:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: extract rules from random forest model</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/extract-rules-from-random-forest-model/m-p/747485#M8725</link>
      <description>&lt;P&gt;Thanks for the suggesting, below is the code. I'm using SASPY which uses thePROC HPFOREST&amp;nbsp;&lt;/P&gt;&lt;P&gt;The saved model is the rf.bin binary file. The goal is to extract the rules from the rf.bin.Just like in decision tree we can&amp;nbsp;WHOLETREEPLOT for&amp;nbsp;&amp;nbsp;HPSPLIT .&lt;/P&gt;&lt;PRE&gt;hpforest_model = ml.hpforest(data=hmeq, 
                             input=var_inputs, 
                             target="BAD /level = binary",
                             score = "out = work.forest_score",
                             save = "rf.bin",
                             id = "_PartInd_",
                             partition="rolevar=_partind_(TRAIN='1' VALIDATE='0');")&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Jun 2021 21:01:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/extract-rules-from-random-forest-model/m-p/747485#M8725</guid>
      <dc:creator>stellarr</dc:creator>
      <dc:date>2021-06-11T21:01:55Z</dc:date>
    </item>
  </channel>
</rss>

