greta-dev / greta

simple and scalable statistical modelling in R
https://greta-stats.org
Other
527 stars 63 forks source link

Updating Optimizers #522

Closed njtierney closed 1 month ago

njtierney commented 2 years ago

I'm going through an updating the optimizers, related to #306 and #482 and wanted to list the changes I've been making along with questions. See https://github.com/njtierney/greta/tree/swap-optimizers for the current pull request. Note that this is based off of #482, as I'm trying to make each PR a little bit more modularised and easier to review. I'm not sure the best way to display those changes on github.

njtierney commented 2 years ago
njtierney commented 2 years ago

Should we remove the following optimizers, since they aren't supported in TF2?

njtierney commented 2 years ago

I'm not confident that the new interface to bfgs and nelder_mead will work, but currently I cannot test this as we still need to do fundamental changes to the internals of greta to work with eager mode.

njtierney commented 2 years ago

It looks like there is a new interface to optimizers in TF 2.9?

https://www.tensorflow.org/api_docs/python/tf/optimizers

njtierney commented 1 year ago

This has been resolved as of https://github.com/njtierney/greta/commit/eef698f23effbc97595d61c3377cdfc1c8686de1