Closed ChristianAmes closed 10 months ago
When choosing LBFGS optimizer in brulee_mlp() it gets set in the following part of mlp_fit_imp ():
https://github.com/tidymodels/brulee/blob/a94ec7a33320f9d83c355351743fcb6564744c84/R/mlp-fit.R#L660-L668
However, in each epoch, the optimizer gets overwritten with an SGD optimizer:
https://github.com/tidymodels/brulee/blob/a94ec7a33320f9d83c355351743fcb6564744c84/R/mlp-fit.R#L697
This leads to the LBFGS optimizer never being used.
Is this an intended behaviour ?
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
When choosing LBFGS optimizer in brulee_mlp() it gets set in the following part of mlp_fit_imp ():
https://github.com/tidymodels/brulee/blob/a94ec7a33320f9d83c355351743fcb6564744c84/R/mlp-fit.R#L660-L668
However, in each epoch, the optimizer gets overwritten with an SGD optimizer:
https://github.com/tidymodels/brulee/blob/a94ec7a33320f9d83c355351743fcb6564744c84/R/mlp-fit.R#L697
This leads to the LBFGS optimizer never being used.
Is this an intended behaviour ?