Fix epsilont early stopping in BoostAODE

This commit is contained in:
2024-02-20 10:11:22 +01:00
parent c7555dac3f
commit a63a35df3f
6 changed files with 26 additions and 11 deletions

View File

@@ -19,7 +19,7 @@
TEST_CASE("Library check version", "[BayesNet]")
{
auto clf = bayesnet::KDB(2);
REQUIRE(clf.getVersion() == "1.0.1");
REQUIRE(clf.getVersion() == "1.0.2");
}
TEST_CASE("Test Bayesian Classifiers score", "[BayesNet]")
{
@@ -164,7 +164,8 @@ TEST_CASE("BoostAODE test used features in train note", "[BayesNet]")
{"ascending",true},
{"convergence", true},
{"repeatSparent",true},
{"select_features","CFS"}
{"select_features","CFS"},
{"tolerance", 3}
});
clf.fit(raw.Xv, raw.yv, raw.featuresv, raw.classNamev, raw.statesv);
REQUIRE(clf.getNumberOfNodes() == 72);