public class EvaluateRules
extends java.lang.Object
Evaluate the rules obtained by the algorithm
Constructor and Description |
---|
EvaluateRules(SetRules setRul,
SetData setTra,
SetData setTst,
int[] examClassTra,
int[] examClassTst,
java.lang.String[] valueNameClass,
java.lang.String mea_file)
Calculate the quality measures of the rules obtained by the algorithm
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
exitResult(SetData Data)
Generate a string with the classification of the total examples for a data set
|
void |
printMeasure(java.lang.String cad)
Print the quality measures in the measure file
|
java.lang.String |
printString()
Print the results in a String
|
public EvaluateRules(SetRules setRul, SetData setTra, SetData setTst, int[] examClassTra, int[] examClassTst, java.lang.String[] valueNameClass, java.lang.String mea_file)
Calculate the quality measures of the rules obtained by the algorithm
setRul
- Set of final rulessetTra
- Set of train datasetTst
- Set of test dataexamClassTra
- Number of examples for each class in the train dataexamClassTst
- Number of examples for each class in the test datavalueNameClass
- Name for each classmea_file
- Name of the measure filepublic java.lang.String printString()
Print the results in a String
public void printMeasure(java.lang.String cad)
Print the quality measures in the measure file
cad
- String with the values to introducepublic java.lang.String exitResult(SetData Data)
Generate a string with the classification of the total examples for a data set
Data
- The data set to study