public class RuleQualityEvaluation
extends java.lang.Object
To evaluate the rules
Constructor and Description |
---|
RuleQualityEvaluation(RuleSet conjreg,
EachDataSet conjTrn,
EachDataSet conjTst,
int[] muestPorClaseTrain,
int[] muestPorClaseTest,
java.lang.String[] valorNombreClases,
java.lang.String[] valorNombreClasesTest)
Calculates the final statistical for a set of rules and a set of data
|
Modifier and Type | Method and Description |
---|---|
double |
getAccuracyTest()
Get Accuracyy Test
|
double |
getAccuracyTrain()
Get Accuracyy Train
|
java.lang.String |
out(EachDataSet datos,
boolean train)
Generates a string with out-put lists
|
java.lang.String |
printString()
Prints on a string the statistical results
|
public RuleQualityEvaluation(RuleSet conjreg, EachDataSet conjTrn, EachDataSet conjTst, int[] muestPorClaseTrain, int[] muestPorClaseTest, java.lang.String[] valorNombreClases, java.lang.String[] valorNombreClasesTest)
Calculates the final statistical for a set of rules and a set of data
conjreg
- Set of rules(complex) finalconjTrn
- Set of data TrainconjTst
- Set of data TestmuestPorClaseTrain
- int[] Number of examples of each class in the Train setmuestPorClaseTest
- int[] Number of examples of each class in the Test setvalorNombreClases
- String[] Labels for each class in the Train setvalorNombreClasesTest
- String[] Labels for each class in the test setpublic double getAccuracyTrain()
Get Accuracyy Train
public double getAccuracyTest()
Get Accuracyy Test
public java.lang.String printString()
Prints on a string the statistical results
public java.lang.String out(EachDataSet datos, boolean train)
Generates a string with out-put lists
datos
- Set of data to compare with the set of rulestrain
- true if the data is from training dataset.