Skip to content

Commit

Permalink
Use max_stepsize in init.
Browse files Browse the repository at this point in the history
  • Loading branch information
mblondel committed Jun 10, 2022
1 parent b265542 commit dafe765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jaxopt/_src/lbfgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def init_state(self,
"""
return LbfgsState(iter_num=jnp.asarray(0),
value=jnp.asarray(jnp.inf),
stepsize=jnp.asarray(1.0),
stepsize=jnp.asarray(self.max_stepsize),
error=jnp.asarray(jnp.inf),
s_history=init_history(init_params, self.history_size),
y_history=init_history(init_params, self.history_size),
Expand Down

0 comments on commit dafe765

Please sign in to comment.