From ce66483b652a4fd36c7e7d40e5579beb8aa6d036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Tue, 26 Sep 2023 14:12:53 +0200 Subject: [PATCH] Update boost version requirement for Linux --- CMakeLists.txt | 2 +- src/Platform/BestResults.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9eafe6e..eb77a77 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,7 @@ option(CODE_COVERAGE "Collect coverage from test library" OFF) set(Boost_USE_STATIC_LIBS OFF) set(Boost_USE_MULTITHREADED ON) set(Boost_USE_STATIC_RUNTIME OFF) -find_package(Boost 1.81.0 REQUIRED) +find_package(Boost 1.78.0 REQUIRED) if(Boost_FOUND) message("Boost_INCLUDE_DIRS=${Boost_INCLUDE_DIRS}") include_directories(${Boost_INCLUDE_DIRS}) diff --git a/src/Platform/BestResults.cc b/src/Platform/BestResults.cc index 94ca802..673378c 100644 --- a/src/Platform/BestResults.cc +++ b/src/Platform/BestResults.cc @@ -239,7 +239,7 @@ namespace platform { } cout << Colors::BLUE() << endl; cout << "*************************************************************************************" << endl; - cout << "Friedman test: H0: 'There is no significant differences between all the classifiers.'" << endl; + cout << Colors::GREEN() << "Friedman test: H0: 'There is no significant differences between all the classifiers.'" << Colors::BLUE() << endl; for (const auto& rank : ranks) { sum += rank.second; } @@ -255,7 +255,7 @@ namespace platform { long double p_value = (long double)1.0 - cdf(chiSquared, friedmanQ); double criticalValue = quantile(chiSquared, 1 - significance); std::cout << "Critical Chi-Square Value for df=" << fixed << (int)degreesOfFreedom - << " and alpha=" << significance << ": " << criticalValue << std::endl; + << " and alpha=" << setprecision(2) << fixed << significance << ": " << setprecision(7) << scientific << criticalValue << std::endl; cout << "p-value: " << scientific << p_value << endl; if (friedmanQ > criticalValue) { cout << Colors::MAGENTA() << "The null hypothesis H0 is rejected." << endl;