Skip to content

Commit

Permalink
Update GradientDescent.java
Browse files Browse the repository at this point in the history
  • Loading branch information
dickensc committed Sep 15, 2023
1 parent 92306a3 commit 6c203f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ protected void runValidationEvaluation(int epoch) {
evaluation.compute(validationMap);
currentValidationEvaluationMetric = evaluation.getNormalizedRepMetric();

if (currentValidationEvaluationMetric > bestValidationEvaluationMetric) {
if (MathUtils.compare(currentValidationEvaluationMetric, bestValidationEvaluationMetric) >= 0) {
lastValidationImprovementEpoch = epoch;

bestValidationEvaluationMetric = currentValidationEvaluationMetric;
Expand Down

0 comments on commit 6c203f2

Please sign in to comment.