|
Algorithm 2 Pseudocode of One-hot encoding, Min–Max Normalization and Z-score Standardization |
|
Input: dataset features , class label
|
|
Output: Pre-processed dataset |
|
MinMaxScaler: |
| = 0 |
| max maximum value among all values of column in
|
| min minimum value among all values of column in
|
| // Equation (1) |
| Return
|
|
Standardize: |
| = 0 |
|
|
|
|
| // Equation (2) |
| Return
|
|
Begin: |
|
[ ] // Normalized/ Standardized dataset |
|
Hot-encoding dataset
|
|
For each item in
do: |
| // both min-max and z-score method is |
| // executed separately |
| End For |
| End |