public class OutputReportHtml extends java.lang.Object implements OutputReport
Modifier and Type | Field and Description |
---|---|
private DatasetInformation |
datasetInformation |
private EditableReportProperties |
EP |
private java.lang.String |
imagePath |
private java.lang.String |
outputDirPath |
private TestRunResultCollection |
testruns |
private int |
type |
private ReportFileWriter |
writer
handles the actual writing of the output.
|
Constructor and Description |
---|
OutputReportHtml(java.lang.String outputDir,
EditableReportProperties EP)
Creates a new Object to finally print the report in HTML
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
classNumberString()
returns the information (or missing information) about classes nicely formatted
|
void |
createOutput()
creates the report about as HTML file.
|
private void |
createScriptAndStyleFiles()
Creates the "reporter.js" and "reporter.css" files, from the templates in rsc/reportGenerator/
|
private java.lang.String |
getSOMDimensions(TestRunResult testrun)
returns the dimension of the SOM nicley formatted.
|
private void |
printComparingReport()
creates the sections that compares the results of the different specified trainings this comparison constists of
a table containing some basic properties of the SOMs, the visualizations of the class distribution, the
distribution of the input items and the U-Matrices of the SOM.
|
private void |
printDatasetReport()
outputs the section concerning the dataset Information included in this section are:
number of inputs
dimension of inputs
information about the data distribution within the different dimensions
...
Also, if class information are provided, these are printed.
|
private void |
printReportEnd()
prints the foot of the report this includes any fixed data to be displayed at the end, as well as all markup
required to finish and close the report
|
private void |
printReportOnTestrun(int r,
boolean moreRuns)
prints the results of/information about one som training and its results.
|
private void |
printReportStart()
prints the start of the report.
|
private void |
printTestrunsReport()
first outputs the section containing the results from the different testruns specified, then a short comparison
of the testruns (SOM configuration and basic results) is printed.
|
void |
setDatasetInformation(DatasetInformation infoObj)
gives an Object to the report writer that stores all information about the used dataset.
|
void |
setTestrunInformation(TestRunResultCollection testruns,
int type)
gives an Object to the report writer that stores all information about the performed that shall be documented
within the report.
|
private void |
writeHeader(java.lang.String header) |
private void |
writeSubHeader(java.lang.String header) |
private ReportFileWriter writer
private DatasetInformation datasetInformation
private TestRunResultCollection testruns
private java.lang.String outputDirPath
private java.lang.String imagePath
private int type
private EditableReportProperties EP
public OutputReportHtml(java.lang.String outputDir, EditableReportProperties EP)
outputDir
- the path to the directory where the files shall be saved topublic void setDatasetInformation(DatasetInformation infoObj)
setDatasetInformation
in interface OutputReport
infoObj
- object containing all available information about the used datasetpublic void setTestrunInformation(TestRunResultCollection testruns, int type)
setTestrunInformation
in interface OutputReport
testruns
- object containting all available information about the testruns performedpublic void createOutput()
createOutput
in interface OutputReport
private void printReportStart()
private void printReportEnd()
private void printDatasetReport()
private void writeSubHeader(java.lang.String header)
private void writeHeader(java.lang.String header)
private void printTestrunsReport()
private void printReportOnTestrun(int r, boolean moreRuns)
r
- the index of the testrun (start counting by 0)moreRuns
- true if the results of more than one training has been spcified, false otherwiseprivate void printComparingReport()
private java.lang.String getSOMDimensions(TestRunResult testrun)
testrun
- the testrun for which the dimensions are neededprotected java.lang.String classNumberString()
private void createScriptAndStyleFiles()