public class Population
extends java.lang.Object
Constructor and Description |
---|
Population()
Default Constructor
|
Population(myDataset train,
DataBase dataBase,
int size,
double crossProb,
double mutProb,
int lengthSC,
double wCAR,
double wV,
double n1,
double n2,
int Jmax,
Apriori apriori)
Constructor with parameters
|
Modifier and Type | Method and Description |
---|---|
boolean |
BETTER(double a,
double b)
Maximization
|
void |
Generation(int n_Generations)
Main procedure of the GA
|
double |
getBestMinFC()
It returns the best minimum confidence
|
double |
getBestMinFS()
It returns the best minimum support
|
RuleBase |
getBestRB()
It returns the best RB found so far
|
public Population()
public Population(myDataset train, DataBase dataBase, int size, double crossProb, double mutProb, int lengthSC, double wCAR, double wV, double n1, double n2, int Jmax, Apriori apriori)
train
- myDataset training setdataBase
- DataBase dataBasesize
- int population sizecrossProb
- double crossover probabilitymutProb
- double mutation probabilitylengthSC
- int total length of the individualswCAR
- double relative weight of the classification accuracy ratewV
- double relative weight of the number of fuzzy rulesn1
- double learning rate (Nozaki method)n2
- double learning rate (Nozaki method)Jmax
- int number of iterations (Nozaki method)apriori
- Apriori an Apriori objectspublic boolean BETTER(double a, double b)
a
- int first numberb
- int second numberpublic void Generation(int n_Generations)
n_Generations
- int number of generationspublic RuleBase getBestRB()
public double getBestMinFS()
public double getBestMinFC()