Skip to content

Commit

Permalink
Merge pull request #325
Browse files Browse the repository at this point in the history
Fix for C++20 constructor template argument deprecation
  • Loading branch information
conradsnicta authored Oct 14, 2021
2 parents 1db28cf + 0f63405 commit 99de75c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/ensmallen_bits/callbacks/early_stop_at_min_loss.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<MatType>(const size_t patienceIn = 10) :
EarlyStopAtMinLossType(const size_t patienceIn = 10) :
callbackUsed(false),
patience(patienceIn),
bestObjective(std::numeric_limits<double>::max()),
Expand All @@ -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<MatType>(
EarlyStopAtMinLossType(
std::function<double(const MatType&)> func,
const size_t patienceIn = 10)
: callbackUsed(true),
Expand Down

0 comments on commit 99de75c

Please sign in to comment.