-
Notifications
You must be signed in to change notification settings - Fork 3k
[FR] Support for scipy.special.gammaincinv #5350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 for JAXNS |
cc @srvasude TFP might gain this in its special function library soon. @fehiepsi and @Joshuaalbert: would you be happy with getting this function from TFP (i.e. and depending on TFP, which does not mean depending on TF), or would you need it in JAX itself? (In general, TFP is adding and maintaining a lot of special functions related to Bayesian inference, and so it might make sense to depend on TFP if possible so as to avoid redundant code between TFP and JAX. But I'd like to hear from you folks to see if that would work for you!) |
Hi @mattjj, having this function works in tfp would be sufficient in my usage case: which is a jaxns wrapper (which requires tfp as a dependency) for numpyro models. |
I think we're now waiting for TFP to gain this capability. @srvasude it'd be great if you could let us know on this issue when that happens! |
Hi all, |
Awesome, thanks a lot, @srvasude! |
These are also plumbed through as quantile functions. FWIW, I would be interested on how you use these (along with jaxns) :). |
Hi @srvasude thanks for the work. In JAXNS we represent all RVs as quantile transformations of a U[0,1] RV. There are several RVs that are currently dependent on inverse incomplete gamma. It would be best if this was as fast as possible, ideally an XLA op. But with TFP we should be able to make do. RE: using TFP for other probability related functions. I support this effort, as it will cause a larger community to test and improve TFP and therefore ultimately the entire community's code. While JAXNS currently doesn't make use of TFP, perhaps it should as part of the next or next-next release. |
pyscenarios needs this to calculate Student T Copula and IT Copula. Specifically, it needs |
This function is useful to compute the quantile function of Gamma distribution and many related distributions.
I know that it is pretty complicated to implement this function, but raising it here in case someone is interested in this.
The text was updated successfully, but these errors were encountered: