final Map<Configuration, Pair<Double, Integer>> performances =
new HashMap<>();
// Sum up run time for performance data
for (PerformanceTuple tuple : trainingData) {
Configuration config = tuple.getConfiguration();
if (!performances.containsKey(config)) {
performances.put(config,
new Pair<>(tuple.getPerformance(), 1));
} else {
Pair<Double, Integer> perf = performances.get(config);