public class SADEGenerator extends PrototypeGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
numberOfClass |
protected int |
numberOfPrototypes |
protected int |
numberOfStrategies |
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
SADEGenerator(PrototypeSet _trainingDataSet,
int neigbors,
int poblacion,
int perc,
int iteraciones)
Build a new SADEGenerator Algorithm
|
SADEGenerator(PrototypeSet t,
Parameters parameters)
Build a new SADEGenerator 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 mejor)
I modified the order of the list of strategies, i need it because i want to do the Same POOL like the paper.
|
PrototypeSet |
reduceSet()
Generate a reduced prototype set by the SADEGenerator method.
|
int |
selectStrategy(double[] ProbabilityStrategy)
I use this function to calculate what strategy we must use with the probability strategy we have.
|
double |
Skg(int strategy,
int[][] successRate,
int[][] failureRate) |
double |
updateProbability(int strategy,
int[][] successRate,
int[][] failureRate) |
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 numberOfPrototypes
protected int numberOfStrategies
protected int numberOfClass
public SADEGenerator(PrototypeSet _trainingDataSet, int neigbors, int poblacion, int perc, int iteraciones)
public SADEGenerator(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 mejor)
population
- actual
- mejor
- public double Skg(int strategy, int[][] successRate, int[][] failureRate)
public double updateProbability(int strategy, int[][] successRate, int[][] failureRate)
public int selectStrategy(double[] ProbabilityStrategy)
ProbabilityStrategy
- public PrototypeSet reduceSet()
reduceSet
in class PrototypeGenerator
public static void main(java.lang.String[] args)
args
- Arguments of the main function.