Skip to main content
. 2024 Feb 21;24(5):1399. doi: 10.3390/s24051399
Algorithm 5 Parallel Random Forest
Input: input_data → Features, thresholds, left and right
             children’s nodes
1: Step 1: Development of the device tree_structure function
2: The single tree outputs max, the prob_array maximum index
3: Step 2: Building of the forest
4: i=blockIdx.x;
5: max=tree_structure(input_data, prob_array, i);
6: atomicAdd&classmax, 1.0;
7: Find imax, index of the class maximum
Output: imax