Skip to main content
. 2020 Sep 9;20(18):5141. doi: 10.3390/s20185141
Algorithm 1: Overall procedure of rule induction
Input:
t: trained tree, d: distillation rate
Output:
L{l}: Ordered Rule set consists of l layers
Initialize rule set L=
For each l in Layer:
   For each r in RF:
      For each t in tree:
         Induce an ith rule it from a tree t
         Calculate rule contribution C of a rule path p
         C(it)=1p(i,j)pWt(i,j)         (3)
         Append rule it  and its C(it) to L{l}tr
      End for
      Sort rules in L{l}tr according to rule contribution
      Eliminate some of rules with low contribution by d%
   End for
End for
Return L