Update test
This commit is contained in:
parent
d39a17089e
commit
f10d0daf2e
@ -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})
|
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
|
||||||
include(AddGitSubmodule)
|
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)
|
if (CODE_COVERAGE)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
include(CodeCoverage)
|
include(CodeCoverage)
|
||||||
|
@ -250,7 +250,7 @@ TEST_CASE("BoostAODE predict_single", "[BayesNet]")
|
|||||||
|
|
||||||
auto raw = RawDatasets("glass", true);
|
auto raw = RawDatasets("glass", true);
|
||||||
std::map<bool, double> scores{
|
std::map<bool, double> scores{
|
||||||
{true, 0.84579f }, { false, 0.81308f }
|
{true, 0.84579f }, { false, 0.80841f }
|
||||||
};
|
};
|
||||||
for (const bool kind : { true, false}) {
|
for (const bool kind : { true, false}) {
|
||||||
auto clf = bayesnet::BoostAODE();
|
auto clf = bayesnet::BoostAODE();
|
||||||
|
Loading…
Reference in New Issue
Block a user