Skip to content

Commit

Permalink
Added missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
xEcho1337 committed Jan 16, 2025
1 parent 27efc9f commit 884777b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void start(Model model, DataSet dataSet, double lossThreshold) {
double finalLoss = loss;
listeners.forEach(listener -> listener.onEvaluated(dataSet, epoches, finalLoss));

if (loss > lastLoss) {
if (loss >= lastLoss) {
// Loss increased, so decrease the learning rate
model.getOptimizer().setLearningRate(model.getOptimizer().getLearningRate() * learningRateDecay);
}
Expand Down Expand Up @@ -79,7 +79,7 @@ public void startFor(Model model, DataSet dataSet, int epochesAmount) {
double finalLoss = loss;
listeners.forEach(listener -> listener.onEvaluated(dataSet, epoches, finalLoss));

if (loss > lastLoss) {
if (loss >= lastLoss) {
double finalLastLoss = lastLoss;

// Loss increased, so decrease the learning rate
Expand Down

0 comments on commit 884777b

Please sign in to comment.