public abstract class EducationalReport
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.io.BufferedReader |
br |
protected java.io.BufferedWriter |
bw |
protected java.lang.String |
experimentName |
protected int |
experimentType |
protected java.io.FileReader |
fr |
protected java.io.FileWriter |
fw |
protected java.util.List<java.lang.String> |
listPathFiles |
protected java.util.List<java.lang.String> |
listPathFilesExtra |
protected java.util.List<java.lang.String> |
pathDatasetFiles |
protected java.lang.String[] |
pathOutputFiles |
protected java.lang.String |
pathReporFile |
protected java.util.List<Element> |
sentences |
Constructor and Description |
---|
EducationalReport(java.util.ArrayList<Element> sentences,
int experimentType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNameExperiment()
Get name of the experiments
|
java.lang.String[] |
getOutputFilePaths()
Return array of strings with file output paths
|
java.lang.String |
obtainReportFilePath()
This method return path of report file
|
static double |
round(double num,
int ndecimal)
Round a double whith a decimal precision
|
abstract void |
running()
This method has to invoque for to create the report.
|
protected int experimentType
protected java.io.FileReader fr
protected java.io.BufferedReader br
protected java.io.FileWriter fw
protected java.io.BufferedWriter bw
protected java.util.List<Element> sentences
protected java.util.List<java.lang.String> pathDatasetFiles
protected java.util.List<java.lang.String> listPathFiles
protected java.util.List<java.lang.String> listPathFilesExtra
protected java.lang.String[] pathOutputFiles
protected java.lang.String pathReporFile
protected java.lang.String experimentName
public EducationalReport(java.util.ArrayList<Element> sentences, int experimentType)
Constructor
sentences
- Total of sentences fo RunKeel.xmlexperimentType
- Type of experiment, classification or regressionpublic abstract void running()
This method has to invoque for to create the report. Verify the type of problem, type partition and paths for to create the report. Read in iterative way the files of results
public java.lang.String[] getOutputFilePaths()
Return array of strings with file output paths
public java.lang.String obtainReportFilePath()
This method return path of report file
public java.lang.String getNameExperiment()
Get name of the experiments
public static double round(double num, int ndecimal)
num
- doublendecimal
- number of decimal for precision