public class DROP3LVQ3 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 |
---|
DROP3LVQ3(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 |
ejecutar() |
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.
|
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 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 void ejecutar()
public void leerConfiguracion(java.lang.String ficheroScript)
Metodo
leerConfiguracion
in class Metodo
ficheroScript
- Configuration script