Skip to content

Commit

Permalink
fix: EarlyStopping test failing
Browse files Browse the repository at this point in the history
  • Loading branch information
Az-r-ow-Kaliop committed May 16, 2024
1 parent 0701e3a commit 05755c5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/test-callbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ using namespace NeuralNet;
TEST_CASE(
"EarlyStopping callback throws exception when the metric is not found",
"[callback]") {
std::shared_ptr<Callback> earlyStopping =
std::make_shared<EarlyStopping>("NOT_A_METRIC", 0.1);

Network network;

REQUIRE_THROWS(Callback::callMethod(earlyStopping, "onEpochEnd", network));
REQUIRE_THROWS(std::make_shared<EarlyStopping>("NOT_A_METRIC", 0.1));
}

TEST_CASE(
Expand Down

0 comments on commit 05755c5

Please sign in to comment.