Skip to content

Commit

Permalink
tests: changed checkpoint file name
Browse files Browse the repository at this point in the history
  • Loading branch information
Az-r-ow committed May 14, 2024
1 parent 4b9065e commit 5bf80d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/test-callbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <callbacks/Callback.hpp>
#include <callbacks/EarlyStopping.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers.hpp>
#include <utils/Variants.hpp>
#include <vector>

Expand All @@ -11,7 +12,7 @@ TEST_CASE(
"EarlyStopping callback throws exception when the metric is not found",
"[callback]") {
std::shared_ptr<Callback> earlyStopping =
std::make_shared<EarlyStopping>("LOSS", 0.1);
std::make_shared<EarlyStopping>("NOT_A_METRIC", 0.1);

Network network;

Expand Down
2 changes: 1 addition & 1 deletion tests/test-network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ SCENARIO("The network updates the weights and biases as pre-calculated") {

Network checkpoint;

Model::load_from_file("checkpoint-0.bin", checkpoint);
Model::load_from_file("N9NeuralNet7NetworkE-checkpoint-0.bin", checkpoint);

REQUIRE(checkpoint.getNumLayers() == network.getNumLayers());

Expand Down

0 comments on commit 5bf80d9

Please sign in to comment.