Skip to main content
. 2021 Apr 25;21(9):3004. doi: 10.3390/s21093004
Algorithm 1: Rule elimination based on feature contribution and feature pattern
1: Input: The number of layers N, the number of RFs V, the number of trees T, random forest RF, list of dSets ListdSet
2: Start with an empty list of dSets
3: ListdSet=
4: Learn LMRF
5: For each l layer:
6: For each v RF:
7: For each t tree:
8: - Split a i-th rule from a decision tree
9: - Calculate feature contribution of a i-th rule feat.contrib(i,*), Equation (2)
10: - Calculate rule contribution for i-th rule rit, Equation (1)
11: - Add rule and its rit to dSet(v,l)
12: End
13: - Compute feature pattern frevl(xj=A) by splitting rules in dSet(v,l), Equation (3)
14: - Re-compute a new rule contribution r*i, Equation (4)
15: - Sort rules in dSet(v,l) according to r*i
16: - Add dSet(v,l) to ListdSet of l-th layer
17:
             ListdSet[l]=ListdSet[l]+dSet(v)
18: End
19: End
20: Output: The ListdSet[l] consists of l layers