de.kumpe.hadooptimizer.impl
Class TextFileReporter<I>
java.lang.Object
de.kumpe.hadooptimizer.impl.TextFileReporter<I>
- Type Parameters:
I
- the individuals' type
- All Implemented Interfaces:
- ReportingHalterWrapper.Reporter<I>, Serializable
public class TextFileReporter<I>
- extends Object
- implements ReportingHalterWrapper.Reporter<I>
A ReportingHalterWrapper.Reporter
implementation which writes the evaluation-results to a
simple text-file of the following format:
A comment in the first line describing the file's format and one line per
EvaluationResult
in with the following colums:
- the cycle number
- the result number
- the evaluation
- the individual formatted by
LoggingReporter.formatIndividual(StringBuilder, Object)
With an double[]
individual the result may look like this:
#cycle result evaluation individual
0 0 20000.0 [100.0, 100.0]
1 0 19260.53116542464 [98.73071889720983, 97.38596735781995]
1 1 19468.191322019986 [99.22362530562448, 98.05102529016519]
1 2 19532.212300408937 [97.62563047159728, 99.91503437205381]
1 3 19567.90766494946 [99.72890299878424, 98.03323251603692]
2 0 18794.398942170505 [96.3683774664037, 97.34133324282375]
2 1 18913.606724906247 [98.47298455693839, 95.88758715386727]
2 2 19009.274361645486 [97.58557565219022, 97.25069301017946]
2 3 19068.25006183995 [96.79725135084752, 98.36164874253139]
- Author:
- Christian Kumpe
- See Also:
- Serialized Form
TextFileReporter
public TextFileReporter(PrintWriter out)
report
public void report(Collection<EvaluationResult<I>> evaluationResults)
- Specified by:
report
in interface ReportingHalterWrapper.Reporter<I>
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 Christian Kumpe. All Rights Reserved.