public class DROP3SFLSDE extends Metodo
Modifier and Type | Field and Description |
---|---|
protected int |
numberOfClass |
protected int |
numberOfPrototypes |
protected int |
numberOfStrategies |
java.lang.String |
Script |
clasesTest, clasesTrain, datosTest, datosTrain, distanceEu, entradas, ficheroSalida, ficheroTest, ficheroTraining, ficheroValidation, nEntradas, nominalDistance, nominalTrain, nulosTrain, realTest, realTrain, relation, salida, stdDev, test, training
Constructor and Description |
---|
DROP3SFLSDE(java.lang.String ficheroScript) |
Modifier and Type | Method and Description |
---|---|
static Prototype |
_1nn(Prototype current,
PrototypeSet dataSet)
Implements the 1NN algorithm
|
double |
classficationAccuracy1NN(PrototypeSet training,
PrototypeSet test) |
void |
desordenar_vector_sin(int[] vector) |
void |
ejecutar() |
void |
inic_vector_sin(int[] vector,
int without) |
void |
leerConfiguracion(java.lang.String ficheroScript)
Reads the parameters of the algorithm.
|
double |
lsff(double Fi,
double CRi,
PrototypeSet[] population,
int actual,
int mejor)
Local Search Fitness Function
|
PrototypeSet |
mutant(PrototypeSet[] population,
int actual,
int mejor,
double SFi) |
static PrototypeSet |
readPrototypeSet(java.lang.String nameOfFile)
Reads the prototype set from a data file.
|
PrototypeSet |
reduceSet(PrototypeSet initial)
Generate a reduced prototype set by the SADEGenerator 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
|
normalizar
public java.lang.String Script
protected int numberOfClass
protected int numberOfPrototypes
protected int numberOfStrategies
public static PrototypeSet readPrototypeSet(java.lang.String nameOfFile)
nameOfFile
- Name of data file to be read.public void inic_vector_sin(int[] vector, int without)
public void desordenar_vector_sin(int[] vector)
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 static Prototype _1nn(Prototype current, PrototypeSet dataSet)
current
- Prototype which the algorithm will find its nearest-neighbor.dataSet
- Prototype set in which the algorithm will search.public double classficationAccuracy1NN(PrototypeSet training, PrototypeSet test)
public PrototypeSet reduceSet(PrototypeSet initial)
public void ejecutar()
public void leerConfiguracion(java.lang.String ficheroScript)
Metodo
leerConfiguracion
in class Metodo
ficheroScript
- Configuration script