public class Metodo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int[] |
clasesTest
Test output data.
|
protected int[] |
clasesTrain
Training output data.
|
protected double[][] |
datosTest
Test input data.
|
protected double[][] |
datosTrain
Training input data.
|
protected boolean |
distanceEu
Flag type of distance (true = euclidean, false = HVDM).
|
protected Attribute[] |
entradas
Input attributes.
|
protected java.lang.String[] |
ficheroSalida
Output files names.
|
protected java.lang.String |
ficheroTest
Test file name.
|
protected java.lang.String |
ficheroTraining
Training file name.
|
protected int |
nEntradas
Number of inputs.
|
protected static double[][][] |
nominalDistance
Nominal distance.
|
protected int[][] |
nominalTest
Test Nominal values.
|
protected int[][] |
nominalTrain
Training Nominal values.
|
protected boolean[][] |
nulosTest
Test Missing values.
|
protected boolean[][] |
nulosTrain
Training Missing values.
|
protected double[][] |
realTest
Test Real values.
|
protected double[][] |
realTrain
Training Real values.
|
protected java.lang.String |
relation
Relation string.
|
protected Attribute |
salida
Output attribute.
|
protected static double[] |
stdDev
Standard deviation.
|
protected InstanceSet |
test
Test dataset.
|
protected InstanceSet |
training
Training dataset.
|
Constructor and Description |
---|
Metodo()
Default builder
|
Metodo(java.lang.String ficheroScript)
Builder.
|
Modifier and Type | Method and Description |
---|---|
void |
leerConfiguracion(java.lang.String ficheroScript)
Reads the parameters of the algorithm.
|
protected void |
normalizar()
This function builds the data matrix for reference data and normalizes inputs values
|
protected java.lang.String ficheroTraining
protected java.lang.String ficheroTest
protected java.lang.String[] ficheroSalida
protected InstanceSet training
protected InstanceSet test
protected Attribute[] entradas
protected Attribute salida
protected int nEntradas
protected java.lang.String relation
protected double[][] datosTrain
protected int[] clasesTrain
protected double[][] datosTest
protected int[] clasesTest
protected boolean[][] nulosTrain
protected int[][] nominalTrain
protected double[][] realTrain
protected boolean[][] nulosTest
protected int[][] nominalTest
protected double[][] realTest
protected boolean distanceEu
protected static double[][][] nominalDistance
protected static double[] stdDev
public Metodo()
public Metodo(java.lang.String ficheroScript)
ficheroScript
- Configuration scriptprotected void normalizar() throws CheckException
CheckException
- if dataset do not correspond to a classification problem.public void leerConfiguracion(java.lang.String ficheroScript)
ficheroScript
- Configuration script