public class Population
extends java.lang.Object
Title: Population
Description: Class for the CHC algorithm
Copyright: KEEL Copyright (c) 2010
Company: KEEL
Constructor and Description |
---|
Population()
Default constructor.
|
Population(myDataset train,
DataBase dataBase,
RuleBase ruleBase,
int size,
int BITS_GEN,
int maxTrials,
double alpha)
Builder
|
Modifier and Type | Method and Description |
---|---|
boolean |
BETTER(double a,
double b)
Maximization
|
void |
Generation()
Run the CHC algorithm (Stage 3)
|
RuleBase |
getBestRB()
Return the best individual in the population
|
public Population()
public Population(myDataset train, DataBase dataBase, RuleBase ruleBase, int size, int BITS_GEN, int maxTrials, double alpha)
Builder
train
- Training datasetdataBase
- Data BaseruleBase
- Rule setsize
- Population sizeBITS_GEN
- Bits per genmaxTrials
- Maximum number of evaluacionsalpha
- Parameter alphapublic boolean BETTER(double a, double b)
a
- int first numberb
- int second numberpublic void Generation()
Run the CHC algorithm (Stage 3)
public RuleBase getBestRB()
Return the best individual in the population