Skip to content

Commit

Permalink
Update GradientDescent.java
Browse files Browse the repository at this point in the history
  • Loading branch information
dickensc committed Aug 31, 2023
1 parent 61d830b commit 3f92c8d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ protected void doLearn() {
log.trace("Batch: {} -- Weight Learning Objective: {}, Gradient Magnitude: {}, Iteration Time: {}",
batchId, batchObjective, computeGradientNorm(), (batchEnd - batchStart));
}
epoch++;

for (DeepPredicate deepPredicate : deepPredicates) {
deepPredicate.epochEnd();
Expand All @@ -365,8 +364,6 @@ protected void doLearn() {
long end = System.currentTimeMillis();
totalTime += end - start;

log.trace("Epoch: {} -- Iteration Time: {}", epoch, (end - start));

if (epoch % trainingStopComputePeriod == 0) {
setFullTrainModel();

Expand All @@ -375,6 +372,9 @@ protected void doLearn() {

breakGD = breakOptimization(epoch);
}

epoch++;
log.trace("Epoch: {} -- Iteration Time: {}", epoch, (end - start));
}
setFullTrainModel();

Expand Down

0 comments on commit 3f92c8d

Please sign in to comment.