CFS-GA: |
Input: |
Encoding records of the dataset with binary code; |
Selection operator; |
Crossover rate ; |
Mutation rate ; |
The iteration number of population ; |
The initial amount of population ; |
|
Output: Attributes selected by GA-CFS; |
|
The description of GA-CFS: |
|
Initialize the population , and generate attribute subsets randomly; |
|
To evaluate the population and calculate the Fitness value of each individual in the population; |
|
While (the optimal result not approached or less than iteration number) |
{ |
Selection operator, according to Fitness value, select the optimal individual |
from the parent generation to the next; |
Crossover operator, according to Fitness value, select attribute subsets by |
from the parent generation, set the crossover point for each attribute subset, then |
swap the structures before or after the point for producing two new individuals; |
Mutation operator, through the mutation rate and mutation operator, |
crossover subsets are mutated at random bits to produce two new individuals; |
Add new individuals into the population to form a new one; |
Evaluating individuals of the new population by Fitness value. |
} |