Move tests library to tests/lib
Add PBC4cip classifier
This commit is contained in:
@@ -135,4 +135,14 @@ TEST_CASE("XGBoost", "[PyClassifiers]")
|
||||
// // REQUIRE(sum == Catch::Approx(1.0).epsilon(raw.epsilon));
|
||||
// }
|
||||
// std::cout << predict << std::endl;
|
||||
// }
|
||||
// }
|
||||
TEST_CASE("PBC4cip", "[PyClassifiers]")
|
||||
{
|
||||
auto raw = RawDatasets("iris", true);
|
||||
auto clf = pywrap::PBC4cip();
|
||||
clf.fit(raw.Xt, raw.yt, raw.featurest, raw.classNamet, raw.statest);
|
||||
nlohmann::json hyperparameters = { };
|
||||
clf.setHyperparameters(hyperparameters);
|
||||
auto score = clf.score(raw.Xt, raw.yt);
|
||||
REQUIRE(score == Catch::Approx(0.98).epsilon(raw.epsilon));
|
||||
}
|
1
tests/lib/Files
Submodule
1
tests/lib/Files
Submodule
Submodule tests/lib/Files added at a4329f5f9d
1
tests/lib/catch2
Submodule
1
tests/lib/catch2
Submodule
Submodule tests/lib/catch2 added at 506276c592
1
tests/lib/mdlp
Submodule
1
tests/lib/mdlp
Submodule
Submodule tests/lib/mdlp added at 7d62d6af4a
Reference in New Issue
Block a user