| Algorithm 3 Fitness Function |
|
Input:: The samples amount of training set. : The amount of feature subsets in an individual. The number of weak classifiers to train. : An individual. : Training Set. Output: : Fitness value of . 1: For do 2: Divide features into Binary Feature and Continuous Feature . 3: Rotation: Apply to and apply to and then merge the two parts. 4: Initialize the weights 5: For do 6: Take a sample from using distribution . 7: Train a classifier using as the training set. 8: Calculate the weighted ensemble error at step by ( if misclassifies and otherwise.) 9: If , ignore , reinitialize the weights to and continue. 10: Else, calculate where . 11: Update the part weights in by 12: Calculate the support for each class in Validation Set by 13: The class with the maximum support is chosen as the label for . 14: is calculated by n validation data. |