public class IPLDEGenerator extends PrototypeGenerator
Modifier and Type | Field and Description |
---|---|
protected int |
numberOfClass |
protected int |
numberOfPrototypes |
algorithmName, generatedDataSet, SEED, seedDefaultValueList, trainingDataSet
Constructor and Description |
---|
IPLDEGenerator(PrototypeSet _trainingDataSet,
int neigbors,
int poblacion,
int perc,
int iteraciones,
double F,
double CR,
int strg)
Build a new IPLDEGenerator Algorithm
|
IPLDEGenerator(PrototypeSet t,
Parameters parameters)
Build a new IPLDEGenerator Algorithm
|
Modifier and Type | Method and Description |
---|---|
PrototypeSet |
basicDE(PrototypeSet myTrain) |
double |
lsff(double Fi,
double CRi,
PrototypeSet population)
Local Search Fitness Function
|
static void |
main(java.lang.String[] args)
General main for all the prototoype generators
|
PrototypeSet |
mutant(PrototypeSet population,
double SFi) |
PrototypeSet |
reduceSet()
Generate a reduced prototype set by the IPLDEGenerator method.
|
PrototypeSet |
SFGSS(PrototypeSet population,
double CRi)
SFGSS local Search.
|
PrototypeSet |
SFHC(PrototypeSet population,
double SFi,
double CRi)
SFHC local search
|
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 numberOfPrototypes
public IPLDEGenerator(PrototypeSet _trainingDataSet, int neigbors, int poblacion, int perc, int iteraciones, double F, double CR, int strg)
public IPLDEGenerator(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, double SFi)
public double lsff(double Fi, double CRi, PrototypeSet population)
public PrototypeSet SFGSS(PrototypeSet population, double CRi)
population
- public PrototypeSet SFHC(PrototypeSet population, double SFi, double CRi)
public PrototypeSet basicDE(PrototypeSet myTrain)
public PrototypeSet reduceSet()
reduceSet
in class PrototypeGenerator
public static void main(java.lang.String[] args)
args
- Arguments of the main function.