From 4dd91413998bc13d5c4d3c44af5c066ee81d391e Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Thu, 18 Jan 2018 12:05:52 +0100 Subject: [PATCH] Fix not actually checking the results. --- src/main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 0984365..38e6530 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -46,6 +46,17 @@ static void loadSimulationData(const Options &options) dumper->dump(layer); } } + + const auto optLabels = options.labels(); + + if (optLabels) { + auto& labels = *optLabels; + for (const auto& result : results) { + auto& last = *result.rbegin(); + auto bestIndex = std::distance(last.data(), max_element(last.data(), last.data() + last.numEntries())); + LOG(INFO) << "Got answer: " << labels[bestIndex] << endl; + } + } } static void renderLayerName(const LayerData &data);