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