Update test

This commit is contained in:
Ricardo Montañana Gómez 2024-02-27 10:16:20 +01:00
parent d39a17089e
commit f10d0daf2e
Signed by: rmontanana
GPG Key ID: 46064262FD9A7ADE
2 changed files with 8 additions and 1 deletions

View File

@ -36,6 +36,13 @@ option(CODE_COVERAGE "Collect coverage from test library" OFF)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
include(AddGitSubmodule)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
MESSAGE("Debug mode")
set(ENABLE_TESTING ON)
set(CODE_COVERAGE ON)
endif (CMAKE_BUILD_TYPE STREQUAL "Debug")
if (CODE_COVERAGE)
enable_testing()
include(CodeCoverage)

View File

@ -250,7 +250,7 @@ TEST_CASE("BoostAODE predict_single", "[BayesNet]")
auto raw = RawDatasets("glass", true);
std::map<bool, double> scores{
{true, 0.84579f }, { false, 0.81308f }
{true, 0.84579f }, { false, 0.80841f }
};
for (const bool kind : { true, false}) {
auto clf = bayesnet::BoostAODE();