Fix tests

This commit is contained in:
2025-03-11 01:09:37 +01:00
parent 3d8be79b37
commit a59689272d
5 changed files with 11 additions and 11 deletions

View File

@@ -17,7 +17,7 @@ TEST_CASE("Fit and Score", "[WA2DE]")
auto raw = RawDatasets("iris", true);
auto clf = bayesnet::WA2DE();
clf.fit(raw.Xv, raw.yv, raw.features, raw.className, raw.states, raw.smoothing);
REQUIRE(clf.score(raw.Xt, raw.yt) == Catch::Approx(0.831776).epsilon(raw.epsilon));
REQUIRE(clf.score(raw.Xt, raw.yt) == Catch::Approx(0.6333333333333333).epsilon(raw.epsilon));
}
TEST_CASE("Test graph", "[WA2DE]")
{