public UnknownObjectTab(ProjectEGFile encogObject) { super(encogObject); HTMLReport report = new HTMLReport(); report.beginHTML(); String title = "Unknown Encog Object Type"; report.title(title); report.beginBody(); report.h1(title); report.para("Unknown Object: " + encogObject.getEncogType()); report.endBody(); report.endHTML(); this.display(report.toString()); }
/** * Produce the report. * * @return The report. */ public String produceReport() { final HTMLReport report = new HTMLReport(); analyzeFile(); report.beginHTML(); report.title("Encog Analyst Report"); report.beginBody(); report.h1("General Statistics"); report.beginTable(); report.tablePair("Total row count", Format.formatInteger(this.rowCount)); report.tablePair("Missing row count", Format.formatInteger(this.missingCount)); report.endTable(); report.h1("Field Ranges"); report.beginTable(); report.beginRow(); report.header("Name"); report.header("Class?"); report.header("Complete?"); report.header("Int?"); report.header("Real?"); report.header("Max"); report.header("Min"); report.header("Mean"); report.header("Standard Deviation"); report.endRow(); for (final DataField df : this.analyst.getScript().getFields()) { report.beginRow(); report.cell(df.getName()); report.cell(Format.formatYesNo(df.isClass())); report.cell(Format.formatYesNo(df.isComplete())); report.cell(Format.formatYesNo(df.isInteger())); report.cell(Format.formatYesNo(df.isReal())); report.cell(Format.formatDouble(df.getMax(), FIVE_SPAN)); report.cell(Format.formatDouble(df.getMin(), FIVE_SPAN)); report.cell(Format.formatDouble(df.getMean(), FIVE_SPAN)); report.cell(Format.formatDouble(df.getStandardDeviation(), FIVE_SPAN)); report.endRow(); if (df.getClassMembers().size() > 0) { report.beginRow(); report.cell(" "); report.beginTableInCell(EIGHT_SPAN); report.beginRow(); report.header("Code"); report.header("Name"); report.header("Count"); report.endRow(); for (final AnalystClassItem item : df.getClassMembers()) { report.beginRow(); report.cell(item.getCode()); report.cell(item.getName()); report.cell(Format.formatInteger(item.getCount())); report.endRow(); } report.endTableInCell(); report.endRow(); } } report.endTable(); report.h1("Normalization"); report.beginTable(); report.beginRow(); report.header("Name"); report.header("Action"); report.header("High"); report.header("Low"); report.endRow(); for (final AnalystField item : this.analyst.getScript().getNormalize().getNormalizedFields()) { report.beginRow(); report.cell(item.getName()); report.cell(item.getAction().toString()); report.cell(Format.formatDouble(item.getNormalizedHigh(), FIVE_SPAN)); report.cell(Format.formatDouble(item.getNormalizedLow(), FIVE_SPAN)); report.endRow(); } report.endTable(); report.h1("Machine Learning"); report.beginTable(); report.beginRow(); report.header("Name"); report.header("Value"); report.endRow(); final String t = this.analyst.getScript().getProperties().getPropertyString(ScriptProperties.ML_CONFIG_TYPE); final String a = this.analyst .getScript() .getProperties() .getPropertyString(ScriptProperties.ML_CONFIG_ARCHITECTURE); final String rf = this.analyst .getScript() .getProperties() .getPropertyString(ScriptProperties.ML_CONFIG_MACHINE_LEARNING_FILE); report.tablePair("Type", t); report.tablePair("Architecture", a); report.tablePair("Machine Learning File", rf); report.endTable(); report.h1("Files"); report.beginTable(); report.beginRow(); report.header("Name"); report.header("Filename"); report.endRow(); for (final String key : this.analyst.getScript().getProperties().getFilenames()) { final String value = this.analyst.getScript().getProperties().getFilename(key); report.beginRow(); report.cell(key); report.cell(value); report.endRow(); } report.endTable(); report.endBody(); report.endHTML(); return report.toString(); }
public void generate() { HTMLReport report = new HTMLReport(); report.beginHTML(); String title = "Encog Workbench v" + EncogWorkBench.VERSION; report.title(title); report.beginBody(); report.h1(title); report.para( "Encog Workbench is released under the Apache License. For more information see the license file released with the Encog Workbench."); report.h3(EncogWorkBench.COPYRIGHT); report.beginTable(); report.tablePair("Java Version", System.getProperty("java.version")); report.tablePair("Java 64/32-Bit", System.getProperty("sun.arch.data.model")); report.tablePair("Processor Count", "" + Runtime.getRuntime().availableProcessors()); report.tablePair("OS Name/Version", "" + ByteOrder.nativeOrder().toString()); report.tablePair("Encog Core Version", "" + Encog.VERSION); report.endTable(); report.h3("Active JAR Files"); report.beginList(); for (final String file : this.jars) { report.listItem(file); } report.endList(); report.endBody(); report.endHTML(); this.display(report.toString()); }
public void init() { HTMLReport report = new HTMLReport(); report.beginHTML(); String title = "Unknown File Type"; report.title(title); report.beginBody(); report.h1(title); report.para("Unknown file type. Do not know how to display."); report.beginTable(); report.tablePair("File Size", Format.formatMemory(this.getEncogObject().getFile().length())); report.tablePair( "Last Modified", new Date(this.getEncogObject().getFile().lastModified()).toString()); report.endTable(); report.endBody(); report.endHTML(); this.display(report.toString()); }