Research Article
Improving the Accuracy for Analyzing Heart Diseases Prediction Based on the Ensemble Method
Algorithm 1
The pseudocode of boost algorithm.
| Input: training number of samples M, classifier C, number iteration N | | Output: result E | | Training: | | Normalize weights and make the total weight is w | | Mi = sample from M | | Ci = training classifier on Mi by C | | ei = ∑ weight (Xi) | | Bi = | | Weight (Xi) = weight (Xi) Bi, for all Xi where Ci (Xi) = yi | | End for | | E = avg ∑ log (1/Bi) | | Ci (Xi) = y |
|