Skip to content

Commit

Permalink
Log parameter movement in GD.
Browse files Browse the repository at this point in the history
  • Loading branch information
dickensc committed Aug 17, 2023
1 parent 166629f commit b5856fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ protected void doLearn() {
oldObjective = objective;

breakGD = breakOptimization(iteration, objective, oldObjective);
log.trace("Iteration {} -- Weight Learning Objective: {}, Gradient Magnitude: {}, Iteration Time: {}",
iteration, objective, computeGradientNorm(), (end - start));
log.trace("Iteration {} -- Weight Learning Objective: {}, Gradient Magnitude: {}, Parameter Movement: {}, Iteration Time: {}",
iteration, objective, computeGradientNorm(), parameterMovement, (end - start));

iteration++;
}
Expand Down

0 comments on commit b5856fe

Please sign in to comment.