3 ms·
Anyone know of a purely functional version?
by pharmakom 3y ago
Anyone know of a purely functional version?
- lbrindze 3y agoI remember seeing this one and an ocaml versions while back. https://gist.github.com/ttesmer/948df432cf46ec6db8c1e83ab59b1b21 https://gist.github.com/ttesmer/948df432cf46ec6db8c1e83ab59b...
- marcle 3y agoI wrote a purely functional AD library in Mercury [0], which adapts a general approach from [1]. I believe that Owl provides a similar approach [2]. [0] https://github.com/mclements/mercury-ad https://github.com/mclements/mercury-ad [1] https://github.com/qobi/AD-Rosetta-Stone/ https://github.com/qobi/AD-Rosetta-Stone/ [2] https://github.com/owlbarn/owl/tree/main/src/base/algodiff https://github.com/owlbarn/owl/tree/main/src/base/algodiff
- sdenton4 3y agoCheck out Jax: https://jax.readthedocs.io/en/latest/notebooks/autodiff_cookbook.html https://jax.readthedocs.io/en/latest/notebooks/autodiff_cook...