public class EvaluaCalidadReglas
extends java.lang.Object
Get the statistical data from the algorithm. In particular, it evaluates the quality of the rules generated.
Constructor and Description |
---|
EvaluaCalidadReglas(ConjReglas conjreg,
ConjDatos conjTrn,
ConjDatos conjTst,
int[] muestPorClaseTrain,
int[] muestPorClaseTest,
java.lang.String[] valorNombreClases)
Calculates the final statisticals for a set of rules and a set of data
|
Modifier and Type | Method and Description |
---|---|
void |
ajustaDistribucion(ConjDatos train)
Updates the dataset distribution.
|
java.lang.String |
printString()
Prints on a string the statistical(for test)
|
java.lang.String |
salida(ConjDatos datos,
int conj)
Generates a string with the out-put lists
|
public EvaluaCalidadReglas(ConjReglas conjreg, ConjDatos conjTrn, ConjDatos conjTst, int[] muestPorClaseTrain, int[] muestPorClaseTest, java.lang.String[] valorNombreClases)
Calculates the final statisticals for a set of rules and a set of data
conjreg
- Set of rules(complex) finalconjTrn
- Set of train dataconjTst
- Set of test datamuestPorClaseTrain
- int[] Number of examples of each class in train setmuestPorClaseTest
- int[] Number of examples of each class in train testvalorNombreClases
- String[] Labels for each classpublic java.lang.String printString()
Prints on a string the statistical(for test)
public void ajustaDistribucion(ConjDatos train)
train
- given dataset.public java.lang.String salida(ConjDatos datos, int conj)
Generates a string with the out-put lists
datos
- Set of data witch to compare the set of rulesconj
- flag to indicates if the set is for training or test (0,1).