Skip to main content
. 2023 Feb 16;11(2):581. doi: 10.3390/biomedicines11020581
Algorithm 3 Random Forest Classification to Predict Liver Disease
Input:     Training set record
Output:   Class of record (liver disease or no liver disease)
Generating Algorithm Begin
     Step 1: Split data into subsets equal to the number of classifiers say n with random feature selection and best split
     Step 2: Train n subsets on n decision trees, respectively
     Step 3: Testing
       Step 3.1: Calculate the output of the test record on each base learner
       Step 3.2: Calculate the final predicted value by using the voting method
End