Algorithm 8: The procedure for applying the DT diabetes detection model |
Input: Input feature vector with n-samples and d-dimension and true label Result: The posterior 1 Divide into and subsets, where consisting of a feature, j and threshold, . 2 Use an impurity function (H), which are given below, to calculate the impurity at the node, , where or and 3 Reduce the impurity by selecting the parameters, . 4 Reapply the preceding steps for subsets and until depth reach to or . |