|
Algorithm 3: Weighted random forest algorithm for dengue prediction |
Input: Dengue Training Partition (P), Count of Trees (N), Features Subset—Random (FS) Output: Random Forest (RF) Tree with Dengue Prediction |
| For each i = 1 to N, do: |
| Apply bootstrap algorithm on training partition (P) such as
|
| Apply the Decision Tree (DT),
|
| Build the RF as . |
| End for |
| For each i = 1 to N, do: |
| Calculate the weight () of ith sample using Equation (1).
|
| End for |
| For each i = 1 to N, do: |
|
| End for |
| For each i = 1 to, do: |
| Calculate the weight () using Equation (3).
|
| For each i = 1 to N, do: |
| Calculate the Final Prediction using Equation (4).
|
| End for |
| Return RF. |