diff options
author | Benjamin Trendelkamp-Schroer <trendelkampschroer@users.noreply.github.com> | 2020-04-29 22:46:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 23:46:53 +0300 |
commit | 44e26f24621ce86ed6b24bfba4a04e82319d7bf0 (patch) | |
tree | 7855731fec8f2e2500dd6a8f3619f7e305290cbb /numpy/array_api/_array_object.py | |
parent | 909d6b8fabe2f0fcdeba6927e4506f19aae52f2e (diff) | |
download | numpy-44e26f24621ce86ed6b24bfba4a04e82319d7bf0.tar.gz |
BUG: Fix numpy.random.dirichlet returns NaN for small 'alpha' parameters. (#14924)
* Add stick-breaking
* Add tests demonstrating slowness for beta and dirichlet generators for small alpha (and beta) values
* Remove the test for beta with small `a` and `b`
* Switch from standard to stick-breaking method whenever alpha.max() < 0.1
Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com>
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
Diffstat (limited to 'numpy/array_api/_array_object.py')
0 files changed, 0 insertions, 0 deletions