Skip to main content
. 2023 Feb 16;11(2):581. doi: 10.3390/biomedicines11020581
Algorithm 2 Bagging 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 bootstrap subsets equal to the number of classifiers say n taking all features
     Step 2: Train n subsets on n base estimators, 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