Skip to content

Commit

Permalink
bugfix save_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilian-gelbrecht committed Aug 6, 2024
1 parent cebb754 commit 55789ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/training.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function train!(model, ps, st, loss_func, train_data, opt_state, η_schedule; τ
end
elseif save_mode==:additional_metric
if gf[:forecast_delta][end] < lowest_additional_metric
lowest_additional_metric = gf[end]
lowest_additional_metric = gf[:forecast_delta][end]
best_ps = deepcopy(ps)
results[:loss_min] .= lowest_additional_metric
results[:i_epoch_min] .= i_epoch
Expand Down

0 comments on commit 55789ac

Please sign in to comment.