public class DEGLGenerator extends PrototypeGenerator
| Modifier and Type | Field and Description |
|---|---|
protected int |
numberOfClass
Number of classes considered
|
protected int |
numberOfPrototypes
Number of prototypes considered
|
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet| Constructor and Description |
|---|
DEGLGenerator(PrototypeSet _trainingDataSet,
int neigbors,
int poblacion,
int perc,
int iteraciones,
double F,
double CR,
int strg)
Build a new DEGLGenerator Algorithm
|
DEGLGenerator(PrototypeSet t,
Parameters parameters)
Build a new DEGLGenerator 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.
|
PrototypeSet |
mutant(PrototypeSet[] population,
int actual,
int bestFitnessIndex,
int bestNeighboor)
Mutation operator.
|
PrototypeSet |
reduceSet()
Generate a reduced prototype set by the DEGLGenerator 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, showResultsOfAccuracyprotected int numberOfPrototypes
protected int numberOfClass
public DEGLGenerator(PrototypeSet _trainingDataSet, int neigbors, int poblacion, int perc, int iteraciones, double F, double CR, int strg)
_trainingDataSet - training dataset to build the model.neigbors - Number of neighbors to considerpoblacion - population size.F - Scaling factoriteraciones - maximum number of iterations.perc - particle size.CR - cross rate.strg - strategy of the algorithm (from 1 to 5)public DEGLGenerator(PrototypeSet t, Parameters parameters)
t - Original prototype set to be reduced.parameters - Parameters of the algorithm (only % of reduced set).public PrototypeSet mutant(PrototypeSet[] population, int actual, int bestFitnessIndex, int bestNeighboor)
population - set of populations.actual - actual population.bestFitnessIndex - best fitness index.bestNeighboor - best neighbour index.public PrototypeSet reduceSet()
reduceSet in class PrototypeGeneratorpublic static void main(java.lang.String[] args)
args - Arguments of the main function.