diff --git a/include/ensmallen_bits/callbacks/early_stop_at_min_loss.hpp b/include/ensmallen_bits/callbacks/early_stop_at_min_loss.hpp index 830bc787e..d0ecf1eb2 100644 --- a/include/ensmallen_bits/callbacks/early_stop_at_min_loss.hpp +++ b/include/ensmallen_bits/callbacks/early_stop_at_min_loss.hpp @@ -32,7 +32,7 @@ class EarlyStopAtMinLossType * @param patienceIn The number of epochs to wait after the minimum loss has * been reached or no improvement has been made (Default: 10). */ - EarlyStopAtMinLossType(const size_t patienceIn = 10) : + EarlyStopAtMinLossType(const size_t patienceIn = 10) : callbackUsed(false), patience(patienceIn), bestObjective(std::numeric_limits::max()), @@ -47,7 +47,7 @@ class EarlyStopAtMinLossType * @param patienceIn The number of epochs to wait after the minimum loss has * been reached or no improvement has been made (Default: 10). */ - EarlyStopAtMinLossType( + EarlyStopAtMinLossType( std::function func, const size_t patienceIn = 10) : callbackUsed(true),