Skip to content

Moaf2411/Rule-extraction-using-Genetic-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rule extraction using Genetic Algorithm

Extracting rules from a dataset using Genetic Algorithm for classification.

chromosome representation is as follows:

- Each chromosome's length is equal to the number of features in the dataset

- Each part of the chromosome corresponds to a feature, with the same order as features in the dataset

- For discrete features, the part corresponding to it in the chromosome, has two sub-parts. first is the limit value for that feature and second is a binary string. this binary string has the same length of the feature's domain and 1 means that this feature can take the value and 0 means that it can't take that value in the domain. 

- For continuous features, the part corresponding to it in the chromosome, has three sub-parts. first is the limit value for that feature, second is the lower bound for it and third value is the upper bound for this feature. The condition on this feature is as follows: if lower bound < feature value < upper bound

- limit parameter controls the presence of each feature in the rule represented by each chromosome. if limit value for feature i is greater or equal to the value of LIMIT parameter specified for algorithm, then the condition on feature i will be in the rule, otherwise it won't be in the rule.

- the algorithm will extract rules for each class.

Here is a pseudocode for GARule function.

pseudocode of algorithm

Below is some rules extracted from iris dataset, fitness column shows each rule's accuracy.

rules extracted from iris dataset.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages