Research Article
AdaBoost Ensemble Methods Using K-Fold Cross Validation for Survivability with the Early Detection of Heart Disease
Algorithm 2
Pseudocode of AdaBoost classifier.
| Input required: TDS: Training Dataset TDS = labels Y | | It: Iteration Number | | Steps a to h | (a) | Assign TDS sample , … (, ); X, {−1, +1} | (b) | Initialize weights of = 1/M, i = 1, …, M | (c) | for It = 1, ... , T | (d) | Train the learner that is weak using distribution | (e) | Get hypothesis of weak : X ⟶ {−1, +1} along with its error = | (f) | Update distribution : | (g) | Next It that, It + 1 | (h) | Final hypothesis Outputs: (x)] |
|