Skip to content

Commit

Permalink
Update optimization.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyji authored Aug 6, 2024
1 parent ca6e840 commit 78b6931
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion diffice_jax/optimizer/optimization.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
@author: Yongji Wang
"""

import sys
import jax.numpy as jnp
import optax
Expand Down Expand Up @@ -138,4 +142,4 @@ def lbfgs_optimizer(lossf, params, data, epoch):
num_iter = results.num_objective_evaluations
loss_all = func_lbfgs.loss
print(f" Total iterations: {num_iter}")
return params, loss_all
return params, loss_all

0 comments on commit 78b6931

Please sign in to comment.