Closed CamDavidsonPilon closed 5 years ago
Nice! Really appreciate this. Maybe this should be its own (tiny) Python package that can be shared.
I can try to fix the build failure. Looks like logsumexp
is missing for some reason.
Maybe this should be its own (tiny) Python package that can be shared.
Yea! I thought about this too, something like autograd-gamma
(I don't think the autograd folks would let an approximation in their library).
That might be the better solution - easier to accept contributions and add new extensions. hm..
Yea, I think it's better: https://pypi.org/project/autograd-gamma/
Awesome – will create a new PR to add this to convoys
I too have struggled with gamma derivatives! This PR is my current best effort, so I can share it with convoys.
I've also included
gammaincc
, asgammaincc=1-gammainc
and you have1-gammainc
in your code, so this is a possible small convenience.