pytorch / pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration
https://pytorch.org
Other
80.49k stars 21.62k forks source link

Feature Request: beta cdf #21553

Open Cheng-Cheng2 opened 5 years ago

Cheng-Cheng2 commented 5 years ago

🚀 Feature

Please implement the cdf for beta distribution.

Motivation

The cdf of beta is used quite frequently but it's not implemented.

Code to reproduce the problem:

from torch.distributions.beta import Beta
m = Beta(torch.tensor([0.5]), torch.tensor([0.5]))
m.cdf(0.0029)

Stack Trace

File "<stdin>", line 1, in <module>
  File "/home/.virtualenvs/test/lib/python3.6/site-packages/torch/distributions/distribution.py", line 133, in cdf
    raise NotImplementedError
NotImplementedError
JamesTrick commented 4 years ago

I too am finding a use-case for this. I'm happy to start work on this.

vBazilevich commented 1 year ago

Any updates on topic? Missing that feature