public class JADEGenerator extends PrototypeGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
numberOfbetters |
protected int |
numberOfClass |
protected int |
numberOfPrototypes |
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
JADEGenerator(PrototypeSet _trainingDataSet,
int neigbors,
int poblacion,
int perc,
int iteraciones,
double F,
double CR,
int strg)
Build a new JADEGenerator Algorithm
|
JADEGenerator(PrototypeSet t,
Parameters parameters)
Build a new JADEGenerator Algorithm
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
General main for all the prototoype generators
Arguments:
0: Filename with the training data set to be condensed.
1: Filename which contains the test data set.
3: Seed of the random number generator.
|
int[] |
mejoresParticulas(PrototypeSet[] population,
double[] fitness) |
PrototypeSet |
mutant(PrototypeSet[] population,
double[] fitness,
int actual,
PrototypeSet[] Archivo,
int utilArchivo) |
PrototypeSet |
reduceSet()
Generate a reduced prototype set by the JADEGenerator method.
|
absoluteAccuracy, absoluteAccuracyAndError, absoluteAccuracyKNN, accuracy, accuracy2, desordenar_vector_sin, desordenar_vector, execute, generateReducedDataSet, getResultingAccuracy, getResultingAccuracy, getResults, getResultsOfAccuracy, getResultsOfAccuracy, getSeed, getSetSizeFromPercentage, getSetSizeFromPercentage, getTime, inic_vector_sin, inic_vector, saveResultsOfAccuracyIn, saveResultsOfAccuracyIn, selecRandomSet, setSeed, showResultsOfAccuracy, showResultsOfAccuracy
protected int numberOfClass
protected int numberOfbetters
protected int numberOfPrototypes
public JADEGenerator(PrototypeSet _trainingDataSet, int neigbors, int poblacion, int perc, int iteraciones, double F, double CR, int strg)
public JADEGenerator(PrototypeSet t, Parameters parameters)
t
- Original prototype set to be reduced.parameters
- Parameters of the algorithm (only % of reduced set).public int[] mejoresParticulas(PrototypeSet[] population, double[] fitness)
public PrototypeSet mutant(PrototypeSet[] population, double[] fitness, int actual, PrototypeSet[] Archivo, int utilArchivo)
public PrototypeSet reduceSet()
reduceSet
in class PrototypeGenerator
public static void main(java.lang.String[] args)
args
- Arguments of the main function.