Research Article
Improving the Accuracy for Analyzing Heart Diseases Prediction Based on the Ensemble Method
Algorithm 2
The pseudocode of bagging algorithm.
Input: training number of samples M, classifier C, number iteration N. | Output: result E. | | Training: | | For i = 1 to N | | Mi = bootstrap sample from M | | Ci = training classifier on Mi by C | | End for | | E = avg ∑ Ci | | Ci (Xi) = y |
|