public class GP_COACH_H
extends java.lang.Object
Title: GP-COACH
Description: It contains the implementation of the GP-COACH algorithm
Company: KEEL
Modifier and Type | Field and Description |
---|---|
static int |
CF
Configuration flag (CF)
|
static int |
MAXIMUM
Configuration flag (MAXIMUM)
|
static int |
MINIMUM
Configuration flag (MINIMUM)
|
static int |
NO_RW
Configuration flag (NO_RW)
|
static int |
NORMALIZED_SUM
Configuration flag (NORMALIZED_SUM)
|
static int |
PCF_II
Configuration flag (PCF_II)
|
static int |
PCF_IV
Configuration flag (PCF_IV)
|
static int |
PROBABILISTIC_SUM
Configuration flag (PROBABILISTIC_SUM)
|
static int |
PRODUCT
Configuration flag (PRODUCT)
|
static int |
WINNING_RULE
Configuration flag (WINNING_RULE)
|
Constructor and Description |
---|
GP_COACH_H()
Default constructor
|
GP_COACH_H(parseParameters parameters)
It reads the data from the input files (training, validation and test) and parse all the parameters
from the parameters array.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
It launches the algorithm
|
protected int |
FRM_NS(java.util.ArrayList<Rule> pop,
double[] example,
boolean[] missing,
java.util.ArrayList<java.lang.Integer> classifying_rules)
Normalized Sum FRM (also known as Additive Combination)
|
protected int |
FRM_WR(java.util.ArrayList<Rule> pop,
double[] example,
boolean[] missing,
java.util.ArrayList<java.lang.Integer> classifying_rules)
Winning Rule FRM
|
void |
writeDataBase(java.lang.String filename)
It writes the Data Base into an output file
|
public static final int CF
public static final int PCF_IV
public static final int PCF_II
public static final int NO_RW
public static final int MINIMUM
public static final int PRODUCT
public static final int MAXIMUM
public static final int PROBABILISTIC_SUM
public static final int WINNING_RULE
public static final int NORMALIZED_SUM
public GP_COACH_H()
public GP_COACH_H(parseParameters parameters)
parameters
- parseParameters It contains the input files, output files and parameterspublic void execute()
protected int FRM_WR(java.util.ArrayList<Rule> pop, double[] example, boolean[] missing, java.util.ArrayList<java.lang.Integer> classifying_rules)
pop
- Current rule base that contains the rules that compose the whole populationexample
- double[] the input examplemissing
- boolean[] containing the missing values of the input exampleclassifying_rules
- ArrayList containing the rules that are used to classify a specific exampleprotected int FRM_NS(java.util.ArrayList<Rule> pop, double[] example, boolean[] missing, java.util.ArrayList<java.lang.Integer> classifying_rules)
pop
- Current rule base that contains the rules that compose the whole populationexample
- double[] the input examplemissing
- boolean[] containing the missing values of the input exampleclassifying_rules
- ArrayList containing the rules that are used to classify a specific examplepublic void writeDataBase(java.lang.String filename)
filename
- String the name of the output file