diff --git a/src/Platform/b_best.cc b/src/Platform/b_best.cc index c628f24..ca1de0f 100644 --- a/src/Platform/b_best.cc +++ b/src/Platform/b_best.cc @@ -5,7 +5,7 @@ #include "Colors.h" #include "config.h" -void manageArguments(argparse::ArgumentParser& program, int argc, char** argv) +void manageArguments(argparse::ArgumentParser& program) { program.add_argument("-m", "--model").default_value("").help("Filter results of the selected model) (any for all models)"); program.add_argument("-s", "--score").default_value("accuracy").help("Filter results of the score name supplied"); @@ -30,7 +30,7 @@ void manageArguments(argparse::ArgumentParser& program, int argc, char** argv) int main(int argc, char** argv) { argparse::ArgumentParser program("b_best", { project_version.begin(), project_version.end() }); - manageArguments(program, argc, argv); + manageArguments(program); std::string model, score; bool build, report, friedman, excel; double level; diff --git a/src/Platform/modules/BestResults.cc b/src/Platform/modules/BestResults.cc index c5d59e8..035b45f 100644 --- a/src/Platform/modules/BestResults.cc +++ b/src/Platform/modules/BestResults.cc @@ -2,7 +2,6 @@ #include #include #include -#include #include #include "BestResults.h" #include "Result.h" @@ -64,7 +63,6 @@ namespace platform { std::pair getModelScore(std::string name) { // results_accuracy_BoostAODE_MacBookpro16_2023-09-06_12:27:00_1.json - int i = 0; auto pos = name.find("_"); auto pos2 = name.find("_", pos + 1); std::string score = name.substr(pos + 1, pos2 - pos - 1); @@ -138,7 +136,7 @@ namespace platform { std::cout << model << ", "; build(); } - std::cout << "end." << std::endl << std::endl;; + std::cout << "end." << std::endl << std::endl; model = "any"; } void BestResults::listFile() diff --git a/src/Platform/modules/Models.cc b/src/Platform/modules/Models.cc index 2791f1a..f73c0d6 100644 --- a/src/Platform/modules/Models.cc +++ b/src/Platform/modules/Models.cc @@ -1,7 +1,7 @@ #include "Models.h" namespace platform { // Idea from: https://www.codeproject.com/Articles/567242/AplusC-2b-2bplusObjectplusFactory - Models* Models::factory = nullptr;; + Models* Models::factory = nullptr; Models* Models::instance() { //manages singleton diff --git a/src/Platform/modules/Results.cc b/src/Platform/modules/Results.cc index 4f6184f..6f5fe14 100644 --- a/src/Platform/modules/Results.cc +++ b/src/Platform/modules/Results.cc @@ -11,7 +11,7 @@ namespace platform { } else { maxModel = 0; } - }; + } void Results::load() { using std::filesystem::directory_iterator; diff --git a/src/Platform/modules/Statistics.cc b/src/Platform/modules/Statistics.cc index 2d58c36..f61f54f 100644 --- a/src/Platform/modules/Statistics.cc +++ b/src/Platform/modules/Statistics.cc @@ -15,7 +15,7 @@ namespace platform { nModels = models.size(); nDatasets = datasets.size(); auto temp = ConfigLocale(); - }; + } void Statistics::fit() {