public class DROP3PSO extends Metodo
Modifier and Type | Field and Description |
---|---|
protected int |
numberOfClass
Class Number.
|
protected int |
numberOfPrototypes
prototypes number.
|
protected int |
numberOfStrategies
number of strategies in the pool.
|
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 |
---|
DROP3PSO(java.lang.String ficheroScript)
Builder.
|
Modifier and Type | Method and Description |
---|---|
static Prototype |
_1nn(Prototype current,
PrototypeSet dataSet)
Implements the 1NN algorithm
|
double |
classficationAccuracy1NN(PrototypeSet training,
PrototypeSet test)
Computes the accuracy for the given test dataset with the 1NN algorithm.
|
void |
ejecutar()
Executes the algorithms combining them.
|
void |
leerConfiguracion(java.lang.String ficheroScript)
Reads the parameters of the algorithm.
|
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 PSOGenerator method.
|
normalizar
public java.lang.String Script
protected int numberOfClass
protected int numberOfPrototypes
protected int numberOfStrategies
public DROP3PSO(java.lang.String ficheroScript)
ficheroScript
- Configuration scriptpublic static PrototypeSet readPrototypeSet(java.lang.String nameOfFile)
nameOfFile
- Name of data file to be read.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)
training
- training dataset for the 1NN.test
- Test dataset to compute its accuracy.public PrototypeSet reduceSet(PrototypeSet initial)
public void ejecutar()
public void leerConfiguracion(java.lang.String ficheroScript)
Metodo
leerConfiguracion
in class Metodo
ficheroScript
- Configuration script