We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current implementation of hyp2f1 outputs wrong results for certain basic values, for example:
hyp2f1
import tensorflow_probability as tfp hyp2f1 = tfp.math.hypergeometric.hyp2f1_small_argument H = 1 hyp2f1(1.0, 0.5 - H, H + 1.5, 9/10) # NaN
This happens under tensorflow_probability==0.24.0 and tensorflow==2.17.1 (e.g. under the current image used by Colab)
tensorflow_probability==0.24.0
tensorflow==2.17.1
The correct result is
from scipy import special hyp2f1 = special.hyp2f1 hyp2f1(1.0, 0.5 - H, H + 1.5, 9/10) # 0.7836799547024426
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The current implementation of
hyp2f1
outputs wrong results for certain basic values, for example:This happens under
tensorflow_probability==0.24.0
andtensorflow==2.17.1
(e.g. under the current image used by Colab)The correct result is
The text was updated successfully, but these errors were encountered: