| Algorithm 1 Pseudocode of Dataset Sampling |
| Input: A list of |
| Output: Balanced dataset |
| an empty list |
| size of data frame |
| for each file do: |
| Import the file as data frame |
| Count the size of the |
| Append data frame to |
| End for |
| threshold the smallest data frame size |
| For all AND do: |
| percent of data |
| Sample dataset as |
| End For |
| Return as csv format |
| End |