Skip to content

Commit

Permalink
add corrected estimate 99 percentile
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Feb 4, 2025
1 parent 4ef1bd0 commit aae25c1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private PlanModelService(InformedModeChoiceConfigGroup config, OutputDirectoryHi

this.out = IOUtils.getBufferedWriter(io.getOutputFilename("score_estimates_stats.csv"));
try {
this.out.write("iteration,mean_estimate_mae,median_estimate_mae,p95_estimate_mae,p99_estimate_mae,mean_corrected_estimate_mae,p95_corrected_estimate_mae,mean_estimate_bias\n");
this.out.write("iteration,mean_estimate_mae,median_estimate_mae,p95_estimate_mae,p99_estimate_mae,mean_corrected_estimate_mae,p95_corrected_estimate_mae,p99_corrected_estimate_mae,mean_estimate_bias\n");
} catch (IOException e) {
throw new UncheckedIOException(e);
}
Expand Down Expand Up @@ -184,14 +184,15 @@ public void notifyIterationEnds(IterationEndsEvent event) {

private void writeStats(int iteration, DescriptiveStatistics mae, DescriptiveStatistics correctedMae, SummaryStatistics bias) {
try {
out.write(String.format(Locale.ENGLISH, "%d,%f,%f,%f,%f,%f,%f,%f\n",
out.write(String.format(Locale.ENGLISH, "%d,%f,%f,%f,%f,%f,%f,%f,%f\n",
iteration,
mae.getMean(),
mae.getPercentile(50),
mae.getPercentile(95),
mae.getPercentile(99),
correctedMae.getMean(),
correctedMae.getPercentile(95),
correctedMae.getPercentile(99),
bias.getMean()
));
out.flush();
Expand Down

0 comments on commit aae25c1

Please sign in to comment.