Update src/mlpack/tests/main_tests/sparse_coding_test.cpp

Co-authored-by: Ryan Curtin <ryan@ratml.org>
This commit is contained in:
Omar Shrit
2024-02-28 12:34:46 +01:00
committed by GitHub
co-authored by Ryan Curtin
parent c3658ec7a2
commit ea6756c6d4
@@ -471,8 +471,7 @@ TEST_CASE_METHOD(SparseCodingTestFixture, "SparseCodingDiffObjToleranceTest",
// using two models model are different.
REQUIRE(accu(dictionary ==
params.Get<arma::mat>("dictionary")) < dictionary.n_elem);
REQUIRE(accu(codes ==
params.Get<arma::mat>("codes")) < codes.n_elem);
REQUIRE(accu(codes == params.Get<arma::mat>("codes")) < codes.n_elem);
}
/**